aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-03-09 02:46:17 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-03-09 02:46:17 +0800
commit6f980cfe10d32ddc276b737df42005ef7cf4cd96 (patch)
treeb6f256306023e06bf4f42101a25583e0a1ced769 /app
parentb0280dc162f0b8e85524a98118d933afd064fae5 (diff)
downloadtangerine-wallet-browser-6f980cfe10d32ddc276b737df42005ef7cf4cd96.tar
tangerine-wallet-browser-6f980cfe10d32ddc276b737df42005ef7cf4cd96.tar.gz
tangerine-wallet-browser-6f980cfe10d32ddc276b737df42005ef7cf4cd96.tar.bz2
tangerine-wallet-browser-6f980cfe10d32ddc276b737df42005ef7cf4cd96.tar.lz
tangerine-wallet-browser-6f980cfe10d32ddc276b737df42005ef7cf4cd96.tar.xz
tangerine-wallet-browser-6f980cfe10d32ddc276b737df42005ef7cf4cd96.tar.zst
tangerine-wallet-browser-6f980cfe10d32ddc276b737df42005ef7cf4cd96.zip
Add more informative message
Diffstat (limited to 'app')
-rw-r--r--app/scripts/popup-core.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/popup-core.js b/app/scripts/popup-core.js
index ae8539a30..e093d06f4 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) {
+ container.innerHTML = '<div class="critical-error">The MetaMask app failed to load: please restart MetaMask</div>'
+ container.style.height = '80px'
log.error(err.stack)
throw err
}
- var container = document.getElementById('app-content')
MetaMaskUi({
container: container,