Skip to content

Commit

Permalink
Let's not paste images when we won't see them
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Nov 16, 2024
1 parent ee8d467 commit 2880af6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fontra/views/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2188,6 +2188,10 @@ export class EditorController {
}

async _pasteClipboardImage() {
if (!this.sceneSettings.selectedGlyph?.isEditing) {
return;
}

const imageBlob =
(await readFromClipboard("image/png", false)) ||
(await readFromClipboard("image/jpeg", false));
Expand Down

0 comments on commit 2880af6

Please sign in to comment.