mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Pasting images was broken in Firefox
This commit is contained in:
parent
4a49fbf44c
commit
e573ea29f3
@ -260,7 +260,7 @@ export default Ember.Component.extend({
|
|||||||
|
|
||||||
// Create a Blob to upload.
|
// Create a Blob to upload.
|
||||||
const image = new Image();
|
const image = new Image();
|
||||||
image.onload = function() {
|
image.onload = () => {
|
||||||
// Create a new canvas.
|
// Create a new canvas.
|
||||||
const canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
|
const canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
|
||||||
canvas.height = image.height;
|
canvas.height = image.height;
|
||||||
|
Loading…
Reference in New Issue
Block a user