diff --git a/public/script.js b/public/script.js index 8d27cb9..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 { + } catch (_e) { // ignore } @@ -599,7 +599,7 @@ function createThemeToggle(initialTheme) { try { localStorage.setItem(THEME_STORAGE_KEY, newTheme); - } catch { + } catch (_e) { // ignore } }); diff --git a/public/theme-init.js b/public/theme-init.js index 60a688f..53b8081 100644 --- a/public/theme-init.js +++ b/public/theme-init.js @@ -13,7 +13,7 @@ } else { document.documentElement.removeAttribute("data-theme"); } - } catch { + } catch (_e) { // If localStorage is blocked, just fall back to light theme document.documentElement.removeAttribute("data-theme"); }