From 77a74b3a94198435736ff3382ef92d0f78dcbba9 Mon Sep 17 00:00:00 2001 From: holgerd77 Date: Fri, 29 Sep 2017 10:31:20 +0200 Subject: [PATCH] Add alert/help msg for injected provider not found when wanting to switch context --- src/execution-context.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/execution-context.js b/src/execution-context.js index 0307b66738..abb215b220 100644 --- a/src/execution-context.js +++ b/src/execution-context.js @@ -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