See https://www.woltlab.com/community/thread/295566-fetch-is-aborted-bei-suchergebnissen/
if (error instanceof ApiError) {
throw error;
} else {
+ if (error instanceof DOMException && error.name === "AbortError") {
+ // `fetch()` will reject the promise with an `AbortError` when
+ // the request is either explicitly (through an `AbortController`)
+ // or implicitly (page navigation) aborted.
+ return;
+ }
+
if (!ignoreConnectionErrors) {
// Re-package the error for use in our global "unhandledrejection" handler.
throw new ConnectionError(error);
throw error;
}
else {
+ if (error instanceof DOMException && error.name === "AbortError") {
+ // `fetch()` will reject the promise with an `AbortError` when
+ // the request is either explicitly (through an `AbortController`)
+ // or implicitly (page navigation) aborted.
+ return;
+ }
if (!ignoreConnectionErrors) {
// Re-package the error for use in our global "unhandledrejection" handler.
throw new Error_1.ConnectionError(error);