Add more informative message

feature/default_network_editable
Kevin Serrano 8 years ago
parent b0280dc162
commit 6f980cfe10
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 4
      app/scripts/popup-core.js
  2. 6
      ui/app/css/lib.css

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

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

Loading…
Cancel
Save