Skip to content

Commit 1260be5

Browse files
committed
update warn message
1 parent 6624fce commit 1260be5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/theme-ui/src/color-modes.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const storage = {
1212
return window.localStorage.getItem(STORAGE_KEY) || init
1313
} catch (e) {
1414
console.warn(
15-
'localStorage is disabled',
16-
'and theming might not work as expected.',
17-
'Please check your Site Settings.'
15+
'localStorage is disabled and color mode might not work as expected.',
16+
'Please check your Site Settings.',
17+
e
1818
)
1919
}
2020
},
@@ -24,9 +24,9 @@ const storage = {
2424
window.localStorage.setItem(STORAGE_KEY, value)
2525
} catch (e) {
2626
console.warn(
27-
'localStorage is disabled',
28-
'and theming might not work as expected.',
29-
'Please check your Site Settings.'
27+
'localStorage is disabled and color mode might not work as expected.',
28+
'Please check your Site Settings.',
29+
e
3030
)
3131
}
3232
},

0 commit comments

Comments
 (0)