diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-03-09 03:05:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 03:05:08 +0800 |
commit | 2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074 (patch) | |
tree | 21cdd36be4742f2b8416d7edcb9c1f60538ab690 | |
parent | b0059bef440776d79d2a55bee0e09bec540618c3 (diff) | |
parent | acc9a2a9d05269511efe26bd790cbc256533c19e (diff) | |
download | tangerine-wallet-browser-2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074.tar tangerine-wallet-browser-2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074.tar.gz tangerine-wallet-browser-2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074.tar.bz2 tangerine-wallet-browser-2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074.tar.lz tangerine-wallet-browser-2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074.tar.xz tangerine-wallet-browser-2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074.tar.zst tangerine-wallet-browser-2e99e6f5de7a11b4e1b3fc1043b0eb24035ed074.zip |
Merge pull request #1191 from MetaMask/i1065-removealert
Convert alert to a log.error
-rw-r--r-- | app/scripts/popup-core.js | 6 | ||||
-rw-r--r-- | ui/app/css/lib.css | 6 |
2 files changed, 10 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, diff --git a/ui/app/css/lib.css b/ui/app/css/lib.css index a8df1d115..99c6f1b9d 100644 --- a/ui/app/css/lib.css +++ b/ui/app/css/lib.css @@ -256,3 +256,9 @@ hr.horizontal-line { text-overflow: ellipsis; white-space: nowrap; } + +.critical-error { + text-align: center; + margin-top: 20px; + color: red; +} |