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 65fdb40 commit c756c40Copy full SHA for c756c40
src/wagmi/KeyManager.ts
@@ -61,7 +61,7 @@ export function localStorage(options: localStorage.Options = {}) {
61
const storage = createStorage({
62
...options,
63
key,
64
- storage: window.localStorage,
+ storage: typeof window !== 'undefined' ? window.localStorage : undefined,
65
})
66
return fromStorage(storage)
67
}
0 commit comments