Commit bbd50f06 authored by Moody Salem's avatar Moody Salem
parent 2291e3ec
...@@ -21,8 +21,8 @@ import getLibrary from './utils/getLibrary' ...@@ -21,8 +21,8 @@ import getLibrary from './utils/getLibrary'
const Web3ProviderNetwork = createWeb3ReactRoot(NetworkContextName) const Web3ProviderNetwork = createWeb3ReactRoot(NetworkContextName)
if ('ethereum' in window) { if (!!window.ethereum) {
;(window.ethereum as any).autoRefreshOnNetworkChange = false window.ethereum.autoRefreshOnNetworkChange = false
} }
const GOOGLE_ANALYTICS_ID: string | undefined = process.env.REACT_APP_GOOGLE_ANALYTICS_ID const GOOGLE_ANALYTICS_ID: string | undefined = process.env.REACT_APP_GOOGLE_ANALYTICS_ID
......
...@@ -11,6 +11,7 @@ interface Window { ...@@ -11,6 +11,7 @@ interface Window {
isMetaMask?: true isMetaMask?: true
on?: (...args: any[]) => void on?: (...args: any[]) => void
removeListener?: (...args: any[]) => void removeListener?: (...args: any[]) => void
autoRefreshOnNetworkChange?: boolean
} }
web3?: {} web3?: {}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment