This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree 4 files changed +8
-9
lines changed
4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " oasis-dex" ,
3
- "version" : " 1.5.7 " ,
3
+ "version" : " 1.5.8 " ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"autoprefixer" : " 7.1.2" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"short_name" : " OasisDEX" ,
3
3
"name" : " OasisDEX" ,
4
- "icons" : [
5
- {
6
- "src" : " favicon.ico" ,
7
- "sizes" : " 192x192" ,
8
- "type" : " image/png"
9
- }
10
- ],
11
4
"start_url" : " ./200.html" ,
12
5
"display" : " standalone" ,
13
6
"theme_color" : " #000000" ,
Original file line number Diff line number Diff line change @@ -138,10 +138,16 @@ const init = async (dispatch) => {
138
138
await dispatch (
139
139
networkReducer . actions . setWaitingForNetworkAccess ( true )
140
140
) ;
141
- window . ethereum . enable ( ) . finally ( ( ) => {
141
+ window . ethereum . enable ( ) . then ( ( ) => {
142
142
dispatch (
143
143
networkReducer . actions . setWaitingForNetworkAccess ( false )
144
144
) ;
145
+ } ) . catch ( e => {
146
+ console . log ( e ) ;
147
+ dispatch (
148
+ networkReducer . actions . setWaitingForNetworkAccess ( false )
149
+ ) ;
150
+ dispatch ( platformReducer . actions . accountLocked ( ) ) ;
145
151
} ) ;
146
152
setInterval ( detectNetworkChange , 500 ) ;
147
153
} else if ( window . web3 ) {
You can’t perform that action at this time.
0 commit comments