We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd221f5 + 50e292e commit 34e1bb6Copy full SHA for 34e1bb6
1 file changed
src/loader/File.js
@@ -316,7 +316,10 @@ var File = new Class({
316
*/
317
onLoad: function (xhr, event)
318
{
319
- var success = !(event.target && event.target.status !== 200);
+ var localFileOk = xhr.responseURL.indexOf('file://') == 0 &&
320
+ event.target.status === 0;
321
+
322
+ var success = !(event.target && event.target.status !== 200) || localFileOk;
323
324
// Handle HTTP status codes of 4xx and 5xx as errors, even if xhr.onerror was not called.
325
if (xhr.readyState === 4 && xhr.status >= 400 && xhr.status <= 599)
0 commit comments