Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 33d0165

Browse files
committedNov 20, 2018
Merged
2 parents 9852591 + 8eab507 commit 33d0165

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oasis-dex",
3-
"version": "1.5.7",
3+
"version": "1.5.8",
44
"private": true,
55
"dependencies": {
66
"autoprefixer": "7.1.2",

‎public/favicon.ico

-612 Bytes
Binary file not shown.

‎public/manifest.json

-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
{
22
"short_name": "OasisDEX",
33
"name": "OasisDEX",
4-
"icons": [
5-
{
6-
"src": "favicon.ico",
7-
"sizes": "192x192",
8-
"type": "image/png"
9-
}
10-
],
114
"start_url": "./200.html",
125
"display": "standalone",
136
"theme_color": "#000000",

‎src/bootstrap/web3.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,16 @@ const init = async (dispatch) => {
138138
await dispatch(
139139
networkReducer.actions.setWaitingForNetworkAccess(true)
140140
);
141-
window.ethereum.enable().finally(() => {
141+
window.ethereum.enable().then(() => {
142142
dispatch(
143143
networkReducer.actions.setWaitingForNetworkAccess(false)
144144
);
145+
}).catch(e => {
146+
console.log(e);
147+
dispatch(
148+
networkReducer.actions.setWaitingForNetworkAccess(false)
149+
);
150+
dispatch(platformReducer.actions.accountLocked());
145151
});
146152
setInterval(detectNetworkChange, 500);
147153
} else if (window.web3) {

0 commit comments

Comments
 (0)
This repository has been archived.