summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-08 23:35:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-08 23:35:59 +0900
commitb1860b244f82da2015138cea2ba9565bb5b0ba3e (patch)
treed00833b6f5111a5915525ade08638e325079156e
parentMerge pull request #453 from syuilo/greenkeeper/webpack-2.5.1 (diff)
downloadmisskey-b1860b244f82da2015138cea2ba9565bb5b0ba3e.tar.gz
misskey-b1860b244f82da2015138cea2ba9565bb5b0ba3e.tar.bz2
misskey-b1860b244f82da2015138cea2ba9565bb5b0ba3e.zip
Better blue screen
-rw-r--r--src/web/app/boot.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index 426c7be40e..97802f89fb 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -120,7 +120,7 @@ function fetchme(token, cb) {
}
// Fetch user
- fetch(CONFIG.apiUrl + '/i', {
+ fetch(`${CONFIG.apiUrl}/i`, {
method: 'POST',
body: JSON.stringify({
i: token
@@ -159,6 +159,17 @@ function fetchme(token, cb) {
function panic(e) {
console.error(e);
- document.body.innerHTML = '<div id="error"><p>致命的な問題が発生しました。</p></div>';
+ document.body.innerHTML =
+ `<div id="error">
+ <h1>:( 致命的な問題が発生しました。</h1>
+ <p>お使いのブラウザ(またはOS)のバージョンを更新すると解決する可能性があります。</p>
+ <hr>
+ <p>エラーコード: ${e.toString()}</p>
+ <p>ブラウザ バージョン: ${navigator.userAgent}</p>
+ <p>クライアント バージョン: ${VERSION}</p>
+ <hr>
+ <p>問題が解決しない場合は上記の情報をお書き添えの上 syuilotan@yahoo.co.jp までご連絡ください。</p>
+ <p>Thank you for using Misskey.</p>
+ </div>`;
// TODO: Report the bug
}