Skip to content

Commit

Permalink
Calls supportsBlobBuilding()
Browse files Browse the repository at this point in the history
Calls supportsBlobBuilding() instead of just checking for existence, so that the check for blob building is  really done.
  • Loading branch information
Kuranes authored and cburgmer committed Feb 4, 2017
1 parent bcd0c11 commit 7d0f426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svg2image.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var svg2image = (function (window) {

var checkBlobSupport = function () {
return new Promise(function (resolve, reject) {
if (supportsBlobBuilding && window.URL) {
if (supportsBlobBuilding() && window.URL) {
readingBackFromCanvasBenefitsFromOldSchoolDataUris()
.then(function (doesBenefit) {
resolve(! doesBenefit);
Expand Down

0 comments on commit 7d0f426

Please sign in to comment.