diff options
| author | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-13 02:54:36 +0000 |
|---|---|---|
| committer | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-13 02:54:36 +0000 |
| commit | 7d6d32144177ce8c516092a114435988864ff6fa (patch) | |
| tree | 2420651070b680ee282862a14c8a9cd5cb1b7310 /js/App.js | |
| parent | 20d2ddabdbc70c3f8f15807ace5bd226082f6a50 (diff) | |
Address remaining ESLint 'no-undef' and 'no-unused-vars' occurrences.
* https://eslint.org/docs/latest/rules/no-undef
* https://eslint.org/docs/latest/rules/no-unused-vars
Diffstat (limited to 'js/App.js')
| -rw-r--r-- | js/App.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -196,7 +196,7 @@ const App = { mql.addEventListener("change", () => { this.nightModeChanged(mql.matches, App.byId("theme_auto_css")); }); - } catch (e) { + } catch { console.warn("exception while trying to set MQL event listener"); } @@ -276,7 +276,7 @@ const App = { try { const results = new RegExp('[?&]' + name + '=([^&#]*)').exec(window.location.href); return decodeURIComponent(results[1].replace(/\+/g, " ")) || 0; - } catch (e) { + } catch { return 0; } }, @@ -701,6 +701,7 @@ const App = { this.is_prefs = is_prefs; window.onerror = this.Error.onWindowError; + /* global __default_dark_theme, __default_light_theme */ this.setInitParam("csrf_token", __csrf_token); this.setInitParam("default_light_theme", __default_light_theme); this.setInitParam("default_dark_theme", __default_dark_theme); |