mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add more informative message
This commit is contained in:
parent
b0280dc162
commit
6f980cfe10
@ -49,12 +49,14 @@ function setupControllerConnection (connectionStream, cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setupApp (err, accountManager) {
|
function setupApp (err, accountManager) {
|
||||||
|
var container = document.getElementById('app-content')
|
||||||
if (err) {
|
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)
|
log.error(err.stack)
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
|
||||||
var container = document.getElementById('app-content')
|
|
||||||
|
|
||||||
MetaMaskUi({
|
MetaMaskUi({
|
||||||
container: container,
|
container: container,
|
||||||
|
@ -256,3 +256,9 @@ hr.horizontal-line {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.critical-error {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user