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 1e01d1a commit 6624fceCopy full SHA for 6624fce
packages/theme-ui/src/color-modes.js
@@ -11,15 +11,23 @@ const storage = {
11
try {
12
return window.localStorage.getItem(STORAGE_KEY) || init
13
} catch (e) {
14
- console.warn(e)
+ console.warn(
15
+ 'localStorage is disabled',
16
+ 'and theming might not work as expected.',
17
+ 'Please check your Site Settings.'
18
+ )
19
}
20
},
21
22
set: value => {
23
24
window.localStorage.setItem(STORAGE_KEY, value)
25
26
27
28
29
30
31
32
33
0 commit comments