Skip to content

Commit

Permalink
use window instead of document
Browse files Browse the repository at this point in the history
  • Loading branch information
Mary Hipp authored and Mary Hipp committed Jan 15, 2025
1 parent d88b59c commit 81fdd41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const FullscreenDropzone = memo(() => {
useEffect(() => {
const controller = new AbortController();

document.addEventListener(
window.addEventListener(
'paste',
(e) => {
if (!e.clipboardData?.files) {
Expand Down

0 comments on commit 81fdd41

Please sign in to comment.