We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f71b51 commit 0e3c919Copy full SHA for 0e3c919
text.js
@@ -287,8 +287,8 @@ define(['module'], function (module) {
287
//Do not explicitly handle errors, those should be
288
//visible via console output in the browser.
289
if (xhr.readyState === 4) {
290
- status = xhr.status;
291
- if ((status > 399 && status < 600) || status === 0) {
+ status = xhr.status || 0;
+ if (status > 399 && status < 600) {
292
//An http 4xx or 5xx error. Signal an error.
293
err = new Error(url + ' HTTP status: ' + status);
294
err.xhr = xhr;
0 commit comments