(e: PromiseRejectionEvent)
| 19 | ); |
| 20 | |
| 21 | const onUnhandledRejection = (e: PromiseRejectionEvent) => { |
| 22 | const r = e.reason; |
| 23 | const msg = typeof r?.message === "string" ? r.message : String(r ?? ""); |
| 24 | if (isChunkFailure(msg)) reloadOnce(); |
| 25 | }; |
| 26 | |
| 27 | const onError = (e: ErrorEvent) => { |
| 28 | const msg = e.message ?? ""; |
nothing calls this directly
no test coverage detected