Skip to content

Commit

Permalink
Merge pull request #1300 from thiagofesta/master
Browse files Browse the repository at this point in the history
Fix IE8 and IE9 with base64 polyfill issue
  • Loading branch information
danialfarid committed Jan 25, 2016
2 parents 2e14b73 + c8015e9 commit 1bb7fae
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 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 @@ -2059,7 +2059,7 @@ ngFileUpload.service('UploadResize', ['UploadValidate', '$q', function (UploadVa

upload.isResizeSupported = function () {
var elem = document.createElement('canvas');
return window.atob && elem.getContext && elem.getContext('2d');
return window.atob && elem.getContext && elem.getContext('2d') && window.Blob;
};

if (upload.isResizeSupported()) {
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 @@ -1637,7 +1637,7 @@ ngFileUpload.service('UploadResize', ['UploadValidate', '$q', function (UploadVa

upload.isResizeSupported = function () {
var elem = document.createElement('canvas');
return window.atob && elem.getContext && elem.getContext('2d');
return window.atob && elem.getContext && elem.getContext('2d') && window.Blob;
};

if (upload.isResizeSupported()) {
Expand Down
4 changes: 2 additions & 2 deletions 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 @@ -2059,7 +2059,7 @@ ngFileUpload.service('UploadResize', ['UploadValidate', '$q', function (UploadVa

upload.isResizeSupported = function () {
var elem = document.createElement('canvas');
return window.atob && elem.getContext && elem.getContext('2d');
return window.atob && elem.getContext && elem.getContext('2d') && window.Blob;
};

if (upload.isResizeSupported()) {
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 @@ -1637,7 +1637,7 @@ ngFileUpload.service('UploadResize', ['UploadValidate', '$q', function (UploadVa

upload.isResizeSupported = function () {
var elem = document.createElement('canvas');
return window.atob && elem.getContext && elem.getContext('2d');
return window.atob && elem.getContext && elem.getContext('2d') && window.Blob;
};

if (upload.isResizeSupported()) {
Expand Down
4 changes: 2 additions & 2 deletions dist/ng-file-upload.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ngFileUpload.service('UploadResize', ['UploadValidate', '$q', function (UploadVa

upload.isResizeSupported = function () {
var elem = document.createElement('canvas');
return window.atob && elem.getContext && elem.getContext('2d');
return window.atob && elem.getContext && elem.getContext('2d') && window.Blob;
};

if (upload.isResizeSupported()) {
Expand Down

0 comments on commit 1bb7fae

Please sign in to comment.