Skip to content

Commit

Permalink
Merge pull request #815 from kiwix/fix-warning-on-each-start-when-SW-…
Browse files Browse the repository at this point in the history
…not-supported

Fix warning on each start when ServiceWorker is not supported
  • Loading branch information
mossroy authored Feb 5, 2022
2 parents b143e83 + 38dc19d commit 05db48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
// A parameter to set the content injection mode ('jquery' or 'serviceworker') used by this app
params['contentInjectionMode'] = settingsStore.getItem('contentInjectionMode') ||
// Defaults to jquery in extensions, and serviceworker if accessing as a PWA
(/^https?:$/i.test(window.location.protocol) && isServiceWorkerAvailable()) ? 'serviceworker' : 'jquery';
((/^https?:$/i.test(window.location.protocol) && isServiceWorkerAvailable()) ? 'serviceworker' : 'jquery');

// An object to hold the current search and its state (allows cancellation of search across modules)
appstate['search'] = {
Expand Down

0 comments on commit 05db48d

Please sign in to comment.