mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08: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.
|
// 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…
Add table
Add a link
Reference in a new issue