1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00

change downloading msg

This commit is contained in:
zumbiepig 2024-08-20 09:42:48 -07:00
parent 50d9dd80a4
commit d4e2198b10
No known key found for this signature in database
GPG Key ID: 17C891BE28B953DE

View File

@ -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();