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

fix wallet init in chrome 14

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