summaryrefslogtreecommitdiff
path: root/js/utility.js
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-12 21:02:39 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-12 21:34:29 +0000
commit39182a76e4070d3b92af10bf609fef8151bce6e4 (patch)
tree806c6e1b1ab421a2631f5e9062a8988480f8ba31 /js/utility.js
parent1299d632bdc8b676d3fc2114a1788a2f8f63597c (diff)
Address ESLint rule 'eqeqeq'.
https://eslint.org/docs/latest/rules/eqeqeq
Diffstat (limited to 'js/utility.js')
-rw-r--r--js/utility.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/utility.js b/js/utility.js
index 2e27c4fe6..e5de5f300 100644
--- a/js/utility.js
+++ b/js/utility.js
@@ -7,8 +7,8 @@ window.addEventListener("load", function() {
apply_night_mode: function (is_night, link) {
console.log("night mode changed to", is_night);
- const light_theme = typeof __default_light_theme != 'undefined' ? __default_light_theme : 'themes/light.css';
- const dark_theme = typeof __default_dark_theme != 'undefined' ? __default_dark_theme : 'themes/night.css';
+ const light_theme = typeof __default_light_theme !== 'undefined' ? __default_light_theme : 'themes/light.css';
+ const dark_theme = typeof __default_dark_theme !== 'undefined' ? __default_dark_theme : 'themes/night.css';
if (link) {
const css_override = is_night ? dark_theme : light_theme;
@@ -27,7 +27,7 @@ window.addEventListener("load", function() {
link.onload = function() {
document.querySelector("body").removeClassName("css_loading");
- if (typeof UtilityApp != "undefined")
+ if (typeof UtilityApp !== "undefined")
UtilityApp.init();
};