[Client] Improve error screen rendering

This commit is contained in:
syuilo 2017-06-13 03:20:43 +09:00
parent fe808b5609
commit 72b7c84139
2 changed files with 1 additions and 7 deletions

View File

@ -30,14 +30,7 @@ html
cursor progress !important
#error
position fixed
z-index 32768
top 0
left 0
width 100%
height 100%
padding 32px
background #1269e2
color #fff
hr

View File

@ -175,6 +175,7 @@ function panic(e) {
console.error(e);
// Display blue screen
document.documentElement.style.background = '#1269e2';
document.body.innerHTML =
'<div id="error">'
+ '<h1>:( 致命的な問題が発生しました。</h1>'