From d4e2198b10a2a3a2886768f029c74acde01fa6a5 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:42:48 -0700 Subject: [PATCH] change downloading msg --- src/resources/scripts/settings.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/resources/scripts/settings.ts b/src/resources/scripts/settings.ts index 7e0a45d..4c0d28c 100644 --- a/src/resources/scripts/settings.ts +++ b/src/resources/scripts/settings.ts @@ -29,7 +29,9 @@ if (window.location.pathname === '/settings/') { storage.local.set('offlineCache', offlineCheckbox.checked); if (offlineCheckbox.checked) { serviceworker.register('/sw-full.js'); - alert('Offline cache is now downloading.\nThe download size is about 1GB, so it may take a while.'); + alert( + 'Offline cache is now downloading.\nThe download size is about 1GB, so it may take a while.\n\nPlease do not leave this page while the download is in progress.\nYou will be notified when the download is complete.' + ); } else { serviceworker.register('/sw.js'); alert('Offline cache has been deleted.'); @@ -75,7 +77,9 @@ if (window.location.pathname === '/welcome/') { if (offlineCheckbox.checked) { serviceworker.register('/sw-full.js'); - alert('Offline cache is now downloading.\nThe download size is about 1GB, so it may take a while.'); + alert( + 'Offline cache is now downloading.\nThe download size is about 1GB, so it may take a while.\n\nPlease do not leave this page while the download is in progress.\nYou will be notified when the download is complete.' + ); try { // @ts-expect-error installPwaEvent.prompt();