From 9bac7f10300164d5b4eae3c9e4bb6b7b8092b36e Mon Sep 17 00:00:00 2001 From: Piotr Date: Fri, 29 Nov 2024 17:44:44 +0100 Subject: [PATCH] chore: remove deprecated event externalwaiting listener (#792) --- src/client/build/register.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/build/register.ts b/src/client/build/register.ts index 7adb27e6..32b9f3af 100644 --- a/src/client/build/register.ts +++ b/src/client/build/register.ts @@ -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) } }