20 lines
543 B
TypeScript
20 lines
543 B
TypeScript
export function markEverDone(): void {
|
|
window.storage.put('chromiumRegistrationDoneEver', '');
|
|
}
|
|
|
|
export function markDone(): void {
|
|
markEverDone();
|
|
window.storage.put('chromiumRegistrationDone', '');
|
|
}
|
|
|
|
export async function remove(): Promise<void> {
|
|
await window.storage.remove('chromiumRegistrationDone');
|
|
}
|
|
|
|
export function isDone(): boolean {
|
|
return window.storage.get('chromiumRegistrationDone') === '';
|
|
}
|
|
|
|
export function everDone(): boolean {
|
|
return window.storage.get('chromiumRegistrationDoneEver') === '' || isDone();
|
|
}
|