Skip to content

Commit

Permalink
Fixed #1010
Browse files Browse the repository at this point in the history
  • Loading branch information
Danial Farid authored and Danial Farid committed Sep 29, 2015
1 parent bd37b16 commit 9326127
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion demo/src/main/webapp/js/ng-file-upload-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http,

config.headers.__setXHR_ = function () {
return function (xhr) {
if (!xhr) return;
if (!xhr || !(xhr instanceof XMLHttpRequest)) return;
config.__XHR = xhr;
if (config.xhrFn) config.xhrFn(xhr);
xhr.upload.addEventListener('progress', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion demo/src/main/webapp/js/ng-file-upload-all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/src/main/webapp/js/ng-file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http,

config.headers.__setXHR_ = function () {
return function (xhr) {
if (!xhr) return;
if (!xhr || !(xhr instanceof XMLHttpRequest)) return;
config.__XHR = xhr;
if (config.xhrFn) config.xhrFn(xhr);
xhr.upload.addEventListener('progress', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion demo/src/main/webapp/js/ng-file-upload.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ng-file-upload-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http,

config.headers.__setXHR_ = function () {
return function (xhr) {
if (!xhr) return;
if (!xhr || !(xhr instanceof XMLHttpRequest)) return;
config.__XHR = xhr;
if (config.xhrFn) config.xhrFn(xhr);
xhr.upload.addEventListener('progress', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-file-upload-all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ng-file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http,

config.headers.__setXHR_ = function () {
return function (xhr) {
if (!xhr) return;
if (!xhr || !(xhr instanceof XMLHttpRequest)) return;
config.__XHR = xhr;
if (config.xhrFn) config.xhrFn(xhr);
xhr.upload.addEventListener('progress', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-file-upload.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http,

config.headers.__setXHR_ = function () {
return function (xhr) {
if (!xhr) return;
if (!xhr || !(xhr instanceof XMLHttpRequest)) return;
config.__XHR = xhr;
if (config.xhrFn) config.xhrFn(xhr);
xhr.upload.addEventListener('progress', function (e) {
Expand Down

0 comments on commit 9326127

Please sign in to comment.