2020-02-12 13:30:58 -08:00
|
|
|
export function markEverDone() {
|
|
|
|
// @ts-ignore
|
|
|
|
window.storage.put('chromiumRegistrationDoneEver', '');
|
|
|
|
}
|
|
|
|
|
|
|
|
export function markDone() {
|
|
|
|
markEverDone();
|
|
|
|
window.storage.put('chromiumRegistrationDone', '');
|
|
|
|
}
|
|
|
|
|
2020-07-24 16:32:08 -07:00
|
|
|
export async function remove() {
|
|
|
|
await window.storage.remove('chromiumRegistrationDone');
|
2020-02-12 13:30:58 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function isDone() {
|
2020-02-21 15:08:21 -08:00
|
|
|
return window.storage.get('chromiumRegistrationDone') === '';
|
2020-02-12 13:30:58 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function everDone() {
|
2020-02-21 15:08:21 -08:00
|
|
|
return window.storage.get('chromiumRegistrationDoneEver') === '' || isDone();
|
2020-02-12 13:30:58 -08:00
|
|
|
}
|