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