Skip to content

Commit

Permalink
Merge pull request #60 from cmd1152/main
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
xjzh123 authored Apr 8, 2024
2 parents 7b81b9b + ecdc9ec commit f47fe35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/catbox_file/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ document.addEventListener('paste', function (e) {
});
});
document.addEventListener('drop', function (e) {
e.preventDefault();
const dt = e.dataTransfer;
const files = dt.files;

if (files.length === 0) return;

e.preventDefault();
Array.from(files).forEach(file => {
uploadImageToCatbox(file,file.type,file.name);
});
Expand Down

0 comments on commit f47fe35

Please sign in to comment.