mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 12:19:46 -04:00
Fix handover
Former-commit-id: 4fb069a159ad65568f52affc5c10c077ef4b9696 [formerly 6206585cf4c4508e2d14b4532f399c6abb17a1b6 [formerly 13dd9ed8b76b9cb7b80c7f0943cf825ac56a2d1d]] Former-commit-id: 16b8b16de451e659550fd3673e964c667579ee55 Former-commit-id: 3bf6866febc8139d432dced83e6ca38c9a03a74a
This commit is contained in:
parent
4e4d669f97
commit
84d85f1d24
@ -4,7 +4,7 @@
|
||||
// App version number - ENSURE IT MATCHES VALUE IN init.js
|
||||
// DEV: Changing this will cause the browser to recognize that the Service Worker has changed, and it will download and
|
||||
// install a new copy
|
||||
const appVersion = '1.2.0-RP16';
|
||||
const appVersion = '1.2.0-RP17';
|
||||
|
||||
// Kiwix ZIM Archive Download Server in regex form
|
||||
// DEV: The server URL is defined in init.js, but is not available to us in SW
|
||||
|
@ -49,7 +49,7 @@ var params = {};
|
||||
*/
|
||||
var appstate = {};
|
||||
/******** UPDATE VERSION IN pwabuilder-sw.js TO MATCH VERSION *******/
|
||||
params['version'] = "1.2.0-RP16"; //DEV: Manually update this version when there is a new release: it is compared to the Settings Store "version" in order to show first-time info, and the cookie is updated in app.js
|
||||
params['version'] = "1.2.0-RP17"; //DEV: Manually update this version when there is a new release: it is compared to the Settings Store "version" in order to show first-time info, and the cookie is updated in app.js
|
||||
/******* UPDATE THIS ^^^^^^ IN serveice worker!! ********************/
|
||||
params['packagedFile'] = "wikipedia_en_100_maxi.zim"; //For packaged Kiwix JS (e.g. with Wikivoyage file), set this to the filename (for split files, give the first chunk *.zimaa) and place file(s) in default storage
|
||||
params['archivePath'] = "archives"; //The directory containing the packaged archive(s) (relative to app's root directory)
|
||||
@ -129,6 +129,7 @@ params.pagesLoaded = 0; // Page counter used to show PWA Install Prompt only aft
|
||||
if (params.storeType === 'local_storage') {
|
||||
localStorage.setItem(params.keyPrefix + paramKey, paramVal);
|
||||
}
|
||||
paramKey = paramKey === 'lastSelectedArchive' ? 'storedFile' : paramKey;
|
||||
params[paramKey] = paramVal;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user