diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-05 13:33:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-05 13:33:11 -0700 |
commit | 34adb13ead3a0858ad3d38b7755b12f0e9610d55 (patch) | |
tree | 04f3b54bc8a59e3adfc337ef3fd9022ec4a41fb5 /src | |
parent | 33e9673c68ad017217b13dbf095d5fcb96663ed4 (diff) |
fix xhrs for file URLs
Diffstat (limited to 'src')
-rw-r--r-- | src/library_browser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 099516a8..c1add740 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -379,7 +379,7 @@ mergeInto(LibraryManager.library, { xhr.open('GET', url, true); xhr.responseType = 'arraybuffer'; xhr.onload = function() { - if (xhr.status == 200) { + if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0 onload(xhr.response); } else { onerror(); |