Skip to content

Commit

Permalink
Don't throw an error if the canvasToBlob function is not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed Mar 6, 2012
1 parent 72d783c commit 0eeaac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery.fileupload-ip.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery File Upload Image Processing Plugin 1.0.2
* jQuery File Upload Image Processing Plugin 1.0.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
Expand Down Expand Up @@ -147,7 +147,7 @@
$.blueimp.fileupload.prototype._create.call(this);
this._processing = 0;
this._processingQueue = $.Deferred().resolveWith(this).promise();
this._resizeSupport = canvasToBlob(
this._resizeSupport = canvasToBlob && canvasToBlob(
document.createElement('canvas'),
$.noop
);
Expand Down

0 comments on commit 0eeaac1

Please sign in to comment.