diff options
Diffstat (limited to 'app/scripts/popup-core.js')
-rw-r--r-- | app/scripts/popup-core.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/popup-core.js b/app/scripts/popup-core.js index 0c97a5d19..b1e521a7a 100644 --- a/app/scripts/popup-core.js +++ b/app/scripts/popup-core.js @@ -49,12 +49,14 @@ function setupControllerConnection (connectionStream, cb) { } function setupApp (err, accountManager) { + var container = document.getElementById('app-content') if (err) { - alert(err.stack) + container.innerHTML = '<div class="critical-error">The MetaMask app failed to load: please open and close MetaMask again to restart.</div>' + container.style.height = '80px' + log.error(err.stack) throw err } - var container = document.getElementById('app-content') MetaMaskUi({ container: container, |