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

fix wallet init in chrome 13

parent efdc6f4d
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,8 @@ export const PolkadotExtensionProvider = ( { children } : { children : ReactNode
useEffect(() => {
if ( typeof window !== "undefined" ) {
if ( Object.keys((globalThis as InjectedWindow).injectedWeb3 ).length > 0 ) {
const w = Object.keys((globalThis as InjectedWindow).injectedWeb3 )
if ( w && 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