|
|
@ -247,9 +247,8 @@ function runTab (container, appAPI, appEvents, opts) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
selectExEnv.addEventListener('change', function (event) { |
|
|
|
selectExEnv.addEventListener('change', function (event) { |
|
|
|
let context = selectExEnv.options[selectExEnv.selectedIndex].value; |
|
|
|
let context = selectExEnv.options[selectExEnv.selectedIndex].value |
|
|
|
executionContext.executionContextChange(context, null, () => { |
|
|
|
executionContext.executionContextChange(context, null, () => { |
|
|
|
|
|
|
|
|
|
|
|
modalDialogCustom.confirm(null, 'Are you sure you want to connect to an ethereum node?', () => { |
|
|
|
modalDialogCustom.confirm(null, 'Are you sure you want to connect to an ethereum node?', () => { |
|
|
|
modalDialogCustom.prompt(null, 'Web3 Provider Endpoint', 'http://localhost:8545', (target) => { |
|
|
|
modalDialogCustom.prompt(null, 'Web3 Provider Endpoint', 'http://localhost:8545', (target) => { |
|
|
|
executionContext.setProviderFromEndpoint(target, context, (alertMsg) => { |
|
|
|
executionContext.setProviderFromEndpoint(target, context, (alertMsg) => { |
|
|
@ -260,7 +259,6 @@ function runTab (container, appAPI, appEvents, opts) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, setFinalContext) |
|
|
|
}, setFinalContext) |
|
|
|
}, setFinalContext) |
|
|
|
}, setFinalContext) |
|
|
|
|
|
|
|
|
|
|
|
}, (alertMsg) => { |
|
|
|
}, (alertMsg) => { |
|
|
|
modalDialogCustom.alert(alertMsg) |
|
|
|
modalDialogCustom.alert(alertMsg) |
|
|
|
}, setFinalContext) |
|
|
|
}, setFinalContext) |
|
|
|