This commit is contained in:
tamaina 2021-08-05 12:50:36 +09:00
parent b6804a6201
commit 65b086c18d
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ export async function signout() {
//#endregion //#endregion
//#region Remove push notification registration //#region Remove push notification registration
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;
await fetch(`${apiUrl}/sw/unregister`, { await fetch(`${apiUrl}/sw/unregister`, {