1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #1191 from MetaMask/i1065-removealert

Convert alert to a log.error
This commit is contained in:
Dan Finlay 2017-03-08 11:05:08 -08:00 committed by GitHub
commit 2e99e6f5de
2 changed files with 10 additions and 2 deletions

View File

@ -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,

View File

@ -256,3 +256,9 @@ hr.horizontal-line {
text-overflow: ellipsis;
white-space: nowrap;
}
.critical-error {
text-align: center;
margin-top: 20px;
color: red;
}