From 04e4c2e4f6b50abdeec16f0185138faee5851de5 Mon Sep 17 00:00:00 2001 From: Hafez Date: Fri, 5 Dec 2025 04:02:45 +0100 Subject: [PATCH] chore: fix lint --- docs/js/theme-toggle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/js/theme-toggle.js b/docs/js/theme-toggle.js index 1fb347e045..6671d79205 100644 --- a/docs/js/theme-toggle.js +++ b/docs/js/theme-toggle.js @@ -1,6 +1,5 @@ +'use strict'; (function() { - 'use strict'; - const STORAGE_KEY = 'mongoose-theme'; const CODE_THEME_CLASS = 'code-theme-dark'; const supportsMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia === 'function'; @@ -20,7 +19,8 @@ if (!skipSetStorage) { try { localStorage.setItem(STORAGE_KEY, theme); - } catch (e) { + // eslint-disable-next-line no-unused-vars + } catch (err) { // Silently fail - theme will still work for current session } }