Skip to content

Commit 173a73f

Browse files
committed
fix(DropZone): won't recognize dropped URLs
1 parent f12581f commit 173a73f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/QrcodeDropZone.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
this.onDragOver(false);
2727
2828
const droppedFiles = [...dataTransfer.files];
29-
const droppedUrl = dataTransfer.getData("text");
29+
const droppedUrl = dataTransfer.getData("text/uri-list");
3030
3131
droppedFiles.forEach(file => {
3232
this.onDetect(this.processFile(file));

0 commit comments

Comments
 (0)