diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index 7b18169e0c..2d4156aa83 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -173,7 +173,7 @@ var css = csjs` color: grey; width: 100%; height: 100%; - padding-right: 20px; + padding-right: 28px; pointer-events: none; } .networkItem { @@ -387,7 +387,7 @@ function settings (appAPI, appEvents) { net.innerHTML = ` ${name}(${id || '-'})` }) } - updateNetwork() + setInterval(updateNetwork, 5000) var el = yo`
@@ -417,6 +417,7 @@ function settings (appAPI, appEvents) { Web3 Provider +
diff --git a/src/execution-context.js b/src/execution-context.js index 811a8e2505..ea85682d3c 100644 --- a/src/execution-context.js +++ b/src/execution-context.js @@ -98,6 +98,7 @@ function ExecutionContext () { this.web3().version.getNetwork((err, id) => { var name = null if (err) name = 'Unknown' + // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md else if (id === '1') name = 'Main' else if (id === '2') name = 'Morden (deprecated)' else if (id === '3') name = 'Ropsten'