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