Skip to content

Commit

Permalink
client/upload: better upload page check when pasting
Browse files Browse the repository at this point in the history
  • Loading branch information
po5 authored and neobooru committed Apr 27, 2024
1 parent 444e46c commit 6599023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/js/controls/file_dropper_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FileDropperControl extends events.EventTarget {
}

document.onpaste = (e) => {
if (!document.querySelector(".file-dropper")) return;
if (!document.getElementById("post-upload")) return;
this._evtPaste(e)
}

Expand Down

0 comments on commit 6599023

Please sign in to comment.