mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 22:15:17 +00:00
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…
Reference in a new issue