Skip to content

Commit

Permalink
Merge pull request #626 from TaniaMalhotra/master
Browse files Browse the repository at this point in the history
fixes #614
  • Loading branch information
TaniaMalhotra authored Jul 1, 2020
2 parents 70d18a2 + 34498af commit bc82070
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nightwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* along with Kiwix (file LICENSE-GPLv3.txt). If not, see <http://www.gnu.org/licenses/>
*/
'use strict';
var TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER;
const TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER;

module.exports = {
"src_folders" : ["browser-tests"],
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,4 @@ function testCacheAndCountAssets(url) {
}).catch(function(err) {
return err;
});
}
}
12 changes: 5 additions & 7 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,22 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
* Maximum number of articles to display in a search
* @type Integer
*/
var MAX_SEARCH_RESULT_SIZE = 50;
const MAX_SEARCH_RESULT_SIZE = 50;

/**
* The delay (in milliseconds) between two "keepalive" messages
* sent to the ServiceWorker (so that it is not stopped by
* the browser, and keeps the MessageChannel to communicate
* with the application)
* The delay (in milliseconds) between two "keepalive" messages sent to the ServiceWorker (so that it is not stopped
* by the browser, and keeps the MessageChannel to communicate with the application)
* @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
* This name will be passed to service-worker.js in messaging to avoid duplication: see comment in service-worker.js
* We need access to this constant in app.js in order to complete utility actions when Service Worker is not initialized
* @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
Expand Down

0 comments on commit bc82070

Please sign in to comment.