mirror of
https://github.com/Ategon/Jamjar.git
synced 2025-02-12 06:16:21 +00:00
Fix chromium opening images in a new tab
This commit is contained in:
parent
922d89424b
commit
7a5cbfdfba
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ export default function Editor({
|
||||||
event.dataTransfer.files &&
|
event.dataTransfer.files &&
|
||||||
event.dataTransfer.files[0]
|
event.dataTransfer.files[0]
|
||||||
) {
|
) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
const file = event.dataTransfer.files[0];
|
const file = event.dataTransfer.files[0];
|
||||||
const filesize = parseInt((file.size / 1024 / 1024).toFixed(4));
|
const filesize = parseInt((file.size / 1024 / 1024).toFixed(4));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue