Skip to content

Commit 0e3c919

Browse files
committed
revert change for #66 as it breaks local files
1 parent 9f71b51 commit 0e3c919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ define(['module'], function (module) {
287287
//Do not explicitly handle errors, those should be
288288
//visible via console output in the browser.
289289
if (xhr.readyState === 4) {
290-
status = xhr.status;
291-
if ((status > 399 && status < 600) || status === 0) {
290+
status = xhr.status || 0;
291+
if (status > 399 && status < 600) {
292292
//An http 4xx or 5xx error. Signal an error.
293293
err = new Error(url + ' HTTP status: ' + status);
294294
err.xhr = xhr;

0 commit comments

Comments
 (0)