Skip to content

Commit

Permalink
Remove deprecated event externalwaiting listener
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz committed Nov 19, 2024
1 parent bee73ad commit 51f6aec
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 @@ -111,8 +111,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 51f6aec

Please sign in to comment.