You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
552 B
TypeScript
22 lines
552 B
TypeScript
function markEverDone() {
|
|
storage.put('chromiumRegistrationDoneEver', '');
|
|
}
|
|
function markDone() {
|
|
this.markEverDone();
|
|
storage.put('chromiumRegistrationDone', '');
|
|
}
|
|
function isDone() {
|
|
return storage.get('chromiumRegistrationDone') === '';
|
|
}
|
|
function everDone() {
|
|
return (
|
|
storage.get('chromiumRegistrationDoneEver') === '' ||
|
|
storage.get('chromiumRegistrationDone') === ''
|
|
);
|
|
}
|
|
function remove() {
|
|
storage.remove('chromiumRegistrationDone');
|
|
}
|
|
|
|
export const Registration = { markEverDone, markDone, isDone, everDone, remove };
|