FIX: Pasting images was broken in Firefox

This commit is contained in:
Robin Ward 2015-11-23 12:34:28 -05:00
parent 4a49fbf44c
commit e573ea29f3

View file

@ -260,7 +260,7 @@ export default Ember.Component.extend({
// Create a Blob to upload.
const image = new Image();
image.onload = function() {
image.onload = () => {
// Create a new canvas.
const canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
canvas.height = image.height;