mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-24 04:54:51 -04:00
Merge pull request #815 from kiwix/fix-warning-on-each-start-when-SW-not-supported
Fix warning on each start when ServiceWorker is not supported
This commit is contained in:
commit
05db48d2a7
@ -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'] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user