We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33314bf + 2d74b48 commit 28f2a0eCopy full SHA for 28f2a0e
src/Cache.ts
@@ -1,5 +1,5 @@
1
const isLocalStorageAvailable: boolean = (() => {
2
- if (!window.localStorage) {
+ if (typeof window === 'undefined' || !window.localStorage) {
3
return false
4
}
5
try {
0 commit comments