Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
bbd50f06
Unverified
Commit
bbd50f06
authored
Feb 01, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
https://github.com/Uniswap/uniswap-interface/issues/1214
parent
2291e3ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.tsx
src/index.tsx
+2
-2
react-app-env.d.ts
src/react-app-env.d.ts
+1
-0
No files found.
src/index.tsx
View file @
bbd50f06
...
@@ -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
...
...
src/react-app-env.d.ts
View file @
bbd50f06
...
@@ -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
?:
{}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment