We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7525ad9 commit 04e4c2eCopy full SHA for 04e4c2e
docs/js/theme-toggle.js
@@ -1,6 +1,5 @@
1
+'use strict';
2
(function() {
- 'use strict';
3
-
4
const STORAGE_KEY = 'mongoose-theme';
5
const CODE_THEME_CLASS = 'code-theme-dark';
6
const supportsMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia === 'function';
@@ -20,7 +19,8 @@
20
19
if (!skipSetStorage) {
21
try {
22
localStorage.setItem(STORAGE_KEY, theme);
23
- } catch (e) {
+ // eslint-disable-next-line no-unused-vars
+ } catch (err) {
24
// Silently fail - theme will still work for current session
25
}
26
0 commit comments