Skip to content

Commit

Permalink
Fix typo and no-unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Oct 28, 2023
1 parent 281d468 commit f3f20e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ params['storeType'] = getBestAvailableStorageAPI();
// The key prefix used by the settingsStore.js (see comment there for explanation), but we also need it below
params['keyPrefix'] = 'kiwixjs-';
params['hideActiveContentWarning'] = getSetting('hideActiveContentWarning') === true;
// A parameter to determine whether to slide away the header and footer when scrolling (feaults to true)
// A parameter to determine whether to slide away the header and footer when scrolling (defaults to true)
params['slideAway'] = getSetting('slideAway') !== false;
params['showUIAnimations'] = getSetting('showUIAnimations') === true;
// Maximum number of article titles to return (range is 5 - 50, default 25)
Expand Down Expand Up @@ -242,6 +242,7 @@ if (/PWA_launch=/.test(window.location.search)) {
params.abort = true;
} else {
// Test if WebP is natively supported, and if not, load a webpMachine instance. This is used in uiUtils.js.
// eslint-disable-next-line no-unused-vars
var webpMachine = false;

// We use a self-invoking function here to avoid defining unnecessary global functions and variables
Expand Down

0 comments on commit f3f20e8

Please sign in to comment.