mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-23 04:28:30 -04:00
Update app.js
This commit is contained in:
parent
a4138a1c5c
commit
9c49c06c73
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user