Skip to content

Commit 04e4c2e

Browse files
chore: fix lint
1 parent 7525ad9 commit 04e4c2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/js/theme-toggle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1+
'use strict';
12
(function() {
2-
'use strict';
3-
43
const STORAGE_KEY = 'mongoose-theme';
54
const CODE_THEME_CLASS = 'code-theme-dark';
65
const supportsMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia === 'function';
@@ -20,7 +19,8 @@
2019
if (!skipSetStorage) {
2120
try {
2221
localStorage.setItem(STORAGE_KEY, theme);
23-
} catch (e) {
22+
// eslint-disable-next-line no-unused-vars
23+
} catch (err) {
2424
// Silently fail - theme will still work for current session
2525
}
2626
}

0 commit comments

Comments
 (0)