From f3f20e8f3acacfc1454920021441b06781d80c42 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sat, 28 Oct 2023 18:20:53 +0100 Subject: [PATCH] Fix typo and no-unused-vars --- www/js/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/js/init.js b/www/js/init.js index 8347ddb27..09520458e 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -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) @@ -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