From 320a9c2146a19912ae7143e5dd1a773f08b91231 Mon Sep 17 00:00:00 2001 From: Piotr Date: Fri, 29 Nov 2024 17:43:27 +0100 Subject: [PATCH] Remove falsy condition (#788) --- src/client/build/register.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client/build/register.ts b/src/client/build/register.ts index 2fad68b7..7adb27e6 100644 --- a/src/client/build/register.ts +++ b/src/client/build/register.ts @@ -98,10 +98,7 @@ export function registerSW(options: RegisterSWOptions = {}) { !onNeedRefreshCalled && onOfflineReady?.() } else { - if (event.isExternal) - window.location.reload() - else - !onNeedRefreshCalled && onOfflineReady?.() + !onNeedRefreshCalled && onOfflineReady?.() } } else if (!event.isUpdate) {