Better blue screen
This commit is contained in:
		
							parent
							
								
									8bf77ac875
								
							
						
					
					
						commit
						b1860b244f
					
				
					 1 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
					@ -120,7 +120,7 @@ function fetchme(token, cb) {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Fetch user
 | 
						// Fetch user
 | 
				
			||||||
	fetch(CONFIG.apiUrl + '/i', {
 | 
						fetch(`${CONFIG.apiUrl}/i`, {
 | 
				
			||||||
		method: 'POST',
 | 
							method: 'POST',
 | 
				
			||||||
		body: JSON.stringify({
 | 
							body: JSON.stringify({
 | 
				
			||||||
			i: token
 | 
								i: token
 | 
				
			||||||
| 
						 | 
					@ -159,6 +159,17 @@ function fetchme(token, cb) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function panic(e) {
 | 
					function panic(e) {
 | 
				
			||||||
	console.error(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
 | 
						// TODO: Report the bug
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue