Skip to content
Snippets Groups Projects
Commit 1c1f9b8f authored by Niklas P's avatar Niklas P
Browse files

fix wallet init in chrome 11

parent eb9bfbf2
No related branches found
No related tags found
No related merge requests found
......@@ -94,9 +94,10 @@ export const PolkadotExtensionProvider = ( { children } : { children : ReactNode
}, [allowExtensionConnection, setAccounts])
useEffect(() => {
console.log( Object.keys((globalThis as InjectedWindow).injectedWeb3 ).length > 0 )
if ( Object.keys((globalThis as InjectedWindow).injectedWeb3 ).length > 0 ) {
setAllowExtensionConnection(true)
if ( typeof window !== "undefined" ) {
if ( Object.keys((globalThis as InjectedWindow).injectedWeb3 ).length > 0 ) {
setAllowExtensionConnection(true)
}
}
},[])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment