Skip to content

Commit

Permalink
Verify Blob
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagofesta committed Jan 25, 2016
1 parent 2e14b73 commit c8015e9
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 c8015e9

Please sign in to comment.