1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 22:38:34 +09:00
This commit is contained in:
syuilo 2021-08-21 11:51:46 +09:00
parent 47dd30d3b2
commit 8ab9068d8e

View File

@ -29,6 +29,7 @@ export async function signout() {
//#endregion
//#region Remove push notification registration
try {
const registration = await navigator.serviceWorker.ready;
const push = await registration.pushManager.getSubscription();
if (!push) return;
@ -39,6 +40,7 @@ export async function signout() {
endpoint: push.endpoint,
}),
});
} catch (e) {}
//#endregion
document.cookie = `igi=; path=/`;