diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 426c7be40e9e6273d9493c8bd09e6e97c23f318b..97802f89fba0fe8b6f90cd39d596af4e6a210b90 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 }