From 97ddf01ed16cecf7ec0a254d6c2890b0e87db364 Mon Sep 17 00:00:00 2001 From: Kosztyk <36381705+Kosztyk@users.noreply.github.com> Date: Mon, 8 Dec 2025 17:26:57 +0200 Subject: [PATCH] Add files via upload --- public/script.js | 4 ++-- public/theme-init.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/script.js b/public/script.js index 2280160..8697480 100644 --- a/public/script.js +++ b/public/script.js @@ -549,7 +549,7 @@ function initThemeFromPreference() { let stored = null; try { stored = localStorage.getItem(THEME_STORAGE_KEY); - } catch (e) { + } catch (_e) { // ignore } @@ -599,7 +599,7 @@ function createThemeToggle(initialTheme) { try { localStorage.setItem(THEME_STORAGE_KEY, newTheme); - } catch (e) { + } catch (_e) { // ignore } }); diff --git a/public/theme-init.js b/public/theme-init.js index 0924375..53b8081 100644 --- a/public/theme-init.js +++ b/public/theme-init.js @@ -13,7 +13,7 @@ } else { document.documentElement.removeAttribute("data-theme"); } - } catch (e) { + } catch (_e) { // If localStorage is blocked, just fall back to light theme document.documentElement.removeAttribute("data-theme"); }