From a10179e6b04ac47716bf946f49f8410a626f2d17 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Fri, 22 Jan 2021 14:30:41 +0000 Subject: [PATCH] Update version Former-commit-id: 726689bac5df161db3f0bb16d0415da724c8d030 [formerly 1a1f130e1f669655655ea2745527f7855af2636f [formerly efd49f1f5d85582674b6fbbacd20d4ef1dcfe5d7]] Former-commit-id: dc9bcf3ddde6948da4684c4cc976ab07bae9bb68 Former-commit-id: 3bc503d31f5d97cd1dc568622c373b6c1e6a2ad4 --- pwabuilder-sw.js | 2 +- www/js/init.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pwabuilder-sw.js b/pwabuilder-sw.js index 13aceb80..fb959b73 100644 --- a/pwabuilder-sw.js +++ b/pwabuilder-sw.js @@ -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.1.4-RP8'; +const appVersion = '1.1.4-RP9'; // 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 diff --git a/www/js/init.js b/www/js/init.js index 91004fc7..f72b344a 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -49,7 +49,7 @@ var params = {}; */ var appstate = {}; /******** UPDATE VERSION IN pwabuilder-sw.js TO MATCH VERSION *******/ -params['version'] = "1.1.4-RP8"; //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.1.4-RP9"; //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) @@ -71,6 +71,7 @@ params['cssUITheme'] = getSetting('cssUITheme') || 'light'; //Set default to 'au params['imageDisplay'] = getSetting('imageDisplay') != null ? getSetting('imageDisplay') : true; //Set default to display images from Zim params['hideToolbars'] = getSetting('hideToolbars') != null ? getSetting('hideToolbars') : true; //Set default to true (hides both), 'top' (hides top only), or false (no hiding) params['rememberLastPage'] = getSetting('rememberLastPage') != null ? getSetting('rememberLastPage') : true; //Set default option to remember the last visited page between sessions +params['lastPageVisit'] = getSetting('lastPageVisit') || ''; params['useMathJax'] = getSetting('useMathJax') != null ? getSetting('useMathJax') : true; //Set default to true to display math formulae with MathJax, false to use fallback SVG images only //params['showFileSelectors'] = getCookie('showFileSelectors') != null ? getCookie('showFileSelectors') : false; //Set to true to display hidden file selectors in packaged apps params['showFileSelectors'] = true; //False will cause file selectors to be hidden on each load of the app (by ignoring cookie)