Permalink
Browse files

FIX: Pasting images was broken in Firefox

  • Loading branch information...
eviltrout committed Nov 23, 2015
1 parent 4a49fbf commit e573ea29f3e2c827f07e20ff01c1f43e61839a1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/discourse/components/composer-editor.js.es6
@@ -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;

0 comments on commit e573ea2

Please sign in to comment.