mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-16 08:54:59 -04:00
FIX: Pasting images was broken in Firefox
This commit is contained in:
parent
4a49fbf44c
commit
e573ea29f3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue