Skip to content

Commit c6a43fa

Browse files
committed
put undefined in quotes: typeof returns a string
1 parent d1829f8 commit c6a43fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { createColorStyles } from './custom-properties'
77
const STORAGE_KEY = 'theme-ui-color-mode'
88
const hasStorage = () => {
99
try {
10-
return typeof window.localStorage !== undefined
10+
return typeof window.localStorage !== 'undefined'
1111
} catch (e) {
1212
return false
1313
}

0 commit comments

Comments
 (0)