Skip to content

Commit

Permalink
chore: remove deprecated event externalwaiting listener (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz authored Nov 29, 2024
1 parent 320a9c2 commit 9bac7f1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/client/build/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ export function registerSW(options: RegisterSWOptions = {}) {
// Add an event listener to detect when the registered
// service worker has installed but is waiting to activate.
wb.addEventListener('waiting', showSkipWaitingPrompt)
// @ts-expect-error event listener provided by workbox-window
wb.addEventListener('externalwaiting', showSkipWaitingPrompt)
}
}

Expand Down

0 comments on commit 9bac7f1

Please sign in to comment.