File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ function createActiveXHR() {
23
23
} catch ( e ) { }
24
24
}
25
25
26
- var isLocal = window . location . protocol === "file:" ;
27
-
28
26
// Create the request object
29
27
var createXHR = window . ActiveXObject ?
30
28
/* Microsoft failed to properly
@@ -34,7 +32,7 @@ var createXHR = window.ActiveXObject ?
34
32
* we need a fallback.
35
33
*/
36
34
function ( ) {
37
- return ! isLocal && createStandardXHR ( ) || createActiveXHR ( ) ;
35
+ return createStandardXHR ( ) || createActiveXHR ( ) ;
38
36
} :
39
37
// For all other browsers, use the standard XMLHttpRequest object
40
38
createStandardXHR ;
@@ -76,7 +74,7 @@ JSZipUtils.getBinaryContent = function(path, callback) {
76
74
var file , err ;
77
75
// use `xhr` and not `this`... thanks IE
78
76
if ( xhr . readyState === 4 ) {
79
- if ( xhr . status === 200 || isLocal ) {
77
+ if ( xhr . status === 200 || xhr . status === 0 ) {
80
78
file = null ;
81
79
err = null ;
82
80
try {
You can’t perform that action at this time.
0 commit comments