Merge pull request #2808 from SchrodingersGat/cancel-requests

Fix search errors
This commit is contained in:
Oliver 2022-04-06 10:38:03 +10:00 committed by GitHub
commit b78407a7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,6 +179,11 @@ function showApiError(xhr, url) {
var title = null;
var message = null;
if (xhr.statusText == 'abort') {
// Don't show errors for requests which were intentionally aborted
return;
}
switch (xhr.status || 0) {
// No response
case 0: