mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 06:03:07 +02:00
[Client] Improve error screen rendering
This commit is contained in:
parent
fe808b5609
commit
72b7c84139
2 changed files with 1 additions and 7 deletions
|
@ -30,14 +30,7 @@ html
|
||||||
cursor progress !important
|
cursor progress !important
|
||||||
|
|
||||||
#error
|
#error
|
||||||
position fixed
|
|
||||||
z-index 32768
|
|
||||||
top 0
|
|
||||||
left 0
|
|
||||||
width 100%
|
|
||||||
height 100%
|
|
||||||
padding 32px
|
padding 32px
|
||||||
background #1269e2
|
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
|
@ -175,6 +175,7 @@ function panic(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|
||||||
// Display blue screen
|
// Display blue screen
|
||||||
|
document.documentElement.style.background = '#1269e2';
|
||||||
document.body.innerHTML =
|
document.body.innerHTML =
|
||||||
'<div id="error">'
|
'<div id="error">'
|
||||||
+ '<h1>:( 致命的な問題が発生しました。</h1>'
|
+ '<h1>:( 致命的な問題が発生しました。</h1>'
|
||||||
|
|
Loading…
Reference in a new issue