Update app.js

This commit is contained in:
Tania Malhotra 2020-06-25 18:31:47 +05:30 committed by GitHub
parent a4138a1c5c
commit 9c49c06c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
* Maximum number of articles to display in a search * Maximum number of articles to display in a search
* @type Integer * @type Integer
*/ */
var MAX_SEARCH_RESULT_SIZE = 50; const MAX_SEARCH_RESULT_SIZE = 50;
/** /**
* The delay (in milliseconds) between two "keepalive" messages * The delay (in milliseconds) between two "keepalive" messages
@ -42,7 +42,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
* with the application) * with the application)
* @type Integer * @type Integer
*/ */
var DELAY_BETWEEN_KEEPALIVE_SERVICEWORKER = 30000; const DELAY_BETWEEN_KEEPALIVE_SERVICEWORKER = 30000;
/** /**
* The name of the Cache API cache to use for caching Service Worker requests and responses for certain asset types * The name of the Cache API cache to use for caching Service Worker requests and responses for certain asset types
@ -50,7 +50,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
* We need access to this constant in app.js in order to complete utility actions when Service Worker is not initialized * We need access to this constant in app.js in order to complete utility actions when Service Worker is not initialized
* @type {String} * @type {String}
*/ */
var CACHE_NAME = 'kiwixjs-assetCache'; const CACHE_NAME = 'kiwixjs-assetCache';
/** /**
* Memory cache for CSS styles contained in ZIM: it significantly speeds up subsequent page display * Memory cache for CSS styles contained in ZIM: it significantly speeds up subsequent page display