diff --git a/pages/account.html b/pages/account.html index 09fcc71..db0970b 100644 --- a/pages/account.html +++ b/pages/account.html @@ -14,7 +14,7 @@
- + Nalog
diff --git a/pages/blog.html b/pages/blog.html index 71c400b..c6a9345 100644 --- a/pages/blog.html +++ b/pages/blog.html @@ -14,7 +14,7 @@
- +
diff --git a/pages/contact.html b/pages/contact.html index cb06754..0c1515f 100644 --- a/pages/contact.html +++ b/pages/contact.html @@ -14,7 +14,7 @@
- +
diff --git a/pages/events.html b/pages/events.html index f836c35..0270e6d 100644 --- a/pages/events.html +++ b/pages/events.html @@ -14,7 +14,7 @@
- +
diff --git a/pages/projects.html b/pages/projects.html index 1e6aa8b..147f9db 100644 --- a/pages/projects.html +++ b/pages/projects.html @@ -14,7 +14,7 @@
- +
diff --git a/pages/services.html b/pages/services.html index 7735caf..4f6c556 100644 --- a/pages/services.html +++ b/pages/services.html @@ -14,7 +14,7 @@
- +
diff --git a/pages/webring.html b/pages/webring.html index 6d378fa..a4c71c9 100644 --- a/pages/webring.html +++ b/pages/webring.html @@ -14,7 +14,7 @@
- +
diff --git a/scripts/main.js b/scripts/main.js index fb9533d..8ba3f80 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -22,7 +22,8 @@ if (theme !== null) { } theme_switcher.addEventListener("click", () => { - if (theme_switcher.getAttribute("title").indexOf("off") !== -1) { + const attribute = theme_switcher.getAttribute("title") ?? "off" + if (attribute.indexOf("off") !== -1) { changeToDarkTheme(); } else { changeToLightTheme();