This commit is contained in:
tamaina 2021-08-05 12:50:36 +09:00
parent b6804a6201
commit 65b086c18d

View file

@ -29,8 +29,7 @@ export async function signout() {
//#endregion
//#region Remove push notification registration
const registration = await navigator.serviceWorker.ready
const registration = await navigator.serviceWorker.ready;
const push = await registration.pushManager.getSubscription();
if (!push) return;
await fetch(`${apiUrl}/sw/unregister`, {