diff --git a/src/lib/notification/updateToast.ts b/src/lib/notification/updateToast.ts index e4c8e66e8..8b4abcbf9 100644 --- a/src/lib/notification/updateToast.ts +++ b/src/lib/notification/updateToast.ts @@ -32,16 +32,6 @@ export const setupUpdateToast = ( return } - // swが更新できるときにトースト表示 - const newWorker = registration.installing - if (newWorker) { - newWorker.addEventListener('statechange', () => { - if (newWorker.state !== 'installed') return - doCanUpdate() - }) - return - } - // swが更新できるときにトースト表示 registration.addEventListener('updatefound', () => { const newWorker = registration.installing