Commit 77a74b3a authored by holgerd77's avatar holgerd77

Add alert/help msg for injected provider not found when wanting to switch context

parent 44390f54
......@@ -138,6 +138,9 @@ function ExecutionContext () {
if (context === 'injected') {
if (injectedProvider === undefined) {
var alertMsg = 'No injected Web3 provider found. '
alertMsg += 'Make sure your provider (e.g. MetaMask) is active and running.'
modalDialogCustom.alert(alertMsg)
cb()
} else {
executionContext = context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment