Fix chromium opening images in a new tab

This commit is contained in:
Ategon 2025-02-10 21:12:33 -05:00
parent 922d89424b
commit 7a5cbfdfba

View file

@ -121,6 +121,8 @@ export default function Editor({
event.dataTransfer.files &&
event.dataTransfer.files[0]
) {
event.preventDefault();
const file = event.dataTransfer.files[0];
const filesize = parseInt((file.size / 1024 / 1024).toFixed(4));