mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
fix trace io
This commit is contained in:
@@ -29,7 +29,11 @@ const set_error_handler = (w, with_unhandled_rejection = true) => {
|
||||
}
|
||||
if(with_unhandled_rejection) {
|
||||
w.addEventListener('unhandledrejection', (event) => {
|
||||
ui.set_status(event.reason)
|
||||
const error = event.reason
|
||||
if(error.__ignore) {
|
||||
return
|
||||
}
|
||||
ui.set_status(error)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user