AJAX: Do not throw error on "abort" in Safari

This commit is contained in:
Raphael Michel
2020-04-01 16:06:30 +02:00
parent cc46d55f5e
commit c0edce7760

View File

@@ -65,7 +65,8 @@ $(document).ajaxError(function (event, jqXHR, settings, thrownError) {
var c = $(jqXHR.responseText).filter('.container');
if (c.length > 0) {
ajaxErrDialog.show(c.first().html());
} else if (thrownError !== "abort") {
} else if (thrownError !== "abort" && thrownError !== "") {
console.log(thrownError);
alert(gettext('Unknown error.'));
}
});