log error while client boot
This commit is contained in:
		
							parent
							
								
									f3b0c6f1e7
								
							
						
					
					
						commit
						61e26696aa
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -14,9 +14,11 @@ | |||
| // ブロックの中に入れないと、定義した変数がブラウザのグローバルスコープに登録されてしまい邪魔なので
 | ||||
| (async () => { | ||||
| 	window.onerror = (e) => { | ||||
| 		console.error(e); | ||||
| 		renderError('SOMETHING_HAPPENED', e); | ||||
| 	}; | ||||
| 	window.onunhandledrejection = (e) => { | ||||
| 		console.error(e); | ||||
| 		renderError('SOMETHING_HAPPENED_IN_PROMISE', e); | ||||
| 	}; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue