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

fix wallet init in chrome 15

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