(e: ErrorEvent)
| 25 | }; |
| 26 | |
| 27 | const onError = (e: ErrorEvent) => { |
| 28 | const msg = e.message ?? ""; |
| 29 | if (isChunkFailure(msg)) reloadOnce(); |
| 30 | }; |
| 31 | |
| 32 | window.addEventListener("unhandledrejection", onUnhandledRejection); |
| 33 | window.addEventListener("error", onError); |
nothing calls this directly
no test coverage detected