Skip to content

Commit

Permalink
Apply suggested code style change from review
Browse files Browse the repository at this point in the history
Co-authored-by: Jaifroid <[email protected]>
  • Loading branch information
mossroy and Jaifroid authored Aug 4, 2022
1 parent 392d5b3 commit d827c85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
// Even if some older firefox versions do not support ServiceWorkers at all (versions 42, 43, 45ESR, 52ESR, 60ESR and 68ESR, based on https://caniuse.com/serviceworkers). In this case, the PWA will not work either.
if (protocol === 'moz-extension:' && !isServiceWorkerAvailable()) {
launchMozillaExtensionServiceWorker();
}
else {
} else {
if (!isServiceWorkerAvailable()) {
uiUtil.systemAlert('The ServiceWorker API is not available on your device. Falling back to JQuery mode', 'ServiceWorker API not available').then(function () {
setContentInjectionMode('jquery');
Expand Down

0 comments on commit d827c85

Please sign in to comment.