fix bug
This commit is contained in:
parent
47dd30d3b2
commit
8ab9068d8e
1 changed files with 12 additions and 10 deletions
|
@ -29,6 +29,7 @@ export async function signout() {
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region Remove push notification registration
|
//#region Remove push notification registration
|
||||||
|
try {
|
||||||
const registration = await navigator.serviceWorker.ready;
|
const registration = await navigator.serviceWorker.ready;
|
||||||
const push = await registration.pushManager.getSubscription();
|
const push = await registration.pushManager.getSubscription();
|
||||||
if (!push) return;
|
if (!push) return;
|
||||||
|
@ -39,6 +40,7 @@ export async function signout() {
|
||||||
endpoint: push.endpoint,
|
endpoint: push.endpoint,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
} catch (e) {}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
document.cookie = `igi=; path=/`;
|
document.cookie = `igi=; path=/`;
|
||||||
|
|
Loading…
Reference in a new issue