Commit bbd50f06 authored by Moody Salem's avatar Moody Salem
parent 2291e3ec
......@@ -21,8 +21,8 @@ import getLibrary from './utils/getLibrary'
const Web3ProviderNetwork = createWeb3ReactRoot(NetworkContextName)
if ('ethereum' in window) {
;(window.ethereum as any).autoRefreshOnNetworkChange = false
if (!!window.ethereum) {
window.ethereum.autoRefreshOnNetworkChange = false
}
const GOOGLE_ANALYTICS_ID: string | undefined = process.env.REACT_APP_GOOGLE_ANALYTICS_ID
......
......@@ -11,6 +11,7 @@ interface Window {
isMetaMask?: true
on?: (...args: any[]) => void
removeListener?: (...args: any[]) => void
autoRefreshOnNetworkChange?: boolean
}
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