Skip to content

Commit

Permalink
Modify ajax.getImage to reflect ajax.getArrayBuffer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Jan 10, 2017
1 parent d7955eb commit 80b8a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/util/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ exports.getImage = function(url, callback) {
callback(null, img);
URL.revokeObjectURL(img.src);
};
const blob = new window.Blob([new Uint8Array(imgData)], { type: 'image/png' });
img.src = imgData.byteLength ? URL.createObjectURL(blob) : transparentPngUrl;
const blob = new window.Blob([new Uint8Array(imgData.data)], { type: 'image/png' });
img.src = imgData.data.byteLength ? URL.createObjectURL(blob) : transparentPngUrl;
});
};

Expand Down

0 comments on commit 80b8a2e

Please sign in to comment.