Skip to content

Commit c756c40

Browse files
committed
chore: up
1 parent 65fdb40 commit c756c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wagmi/KeyManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function localStorage(options: localStorage.Options = {}) {
6161
const storage = createStorage({
6262
...options,
6363
key,
64-
storage: window.localStorage,
64+
storage: typeof window !== 'undefined' ? window.localStorage : undefined,
6565
})
6666
return fromStorage(storage)
6767
}

0 commit comments

Comments
 (0)