21 lines
514 B
TypeScript
21 lines
514 B
TypeScript
export function markEverDone() {
|
|
// @ts-ignore
|
|
window.storage.put('chromiumRegistrationDoneEver', '');
|
|
}
|
|
|
|
export function markDone() {
|
|
markEverDone();
|
|
window.storage.put('chromiumRegistrationDone', '');
|
|
}
|
|
|
|
export async function remove() {
|
|
await window.storage.remove('chromiumRegistrationDone');
|
|
}
|
|
|
|
export function isDone() {
|
|
return window.storage.get('chromiumRegistrationDone') === '';
|
|
}
|
|
|
|
export function everDone() {
|
|
return window.storage.get('chromiumRegistrationDoneEver') === '' || isDone();
|
|
}
|