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:
parent
50d9dd80a4
commit
d4e2198b10
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user