diff options
author | pacien | 2023-10-23 22:26:07 +0200 |
---|---|---|
committer | pacien | 2023-10-23 22:26:07 +0200 |
commit | f044095b70bbc56b17332f9fb3dde85e2de40222 (patch) | |
tree | b3b6f08cf9711caaf82940a562d4b338c8e70525 /beamer/viewer | |
parent | 5fc1c35cfe6e175dddbe5a494bdb8bc87164ed39 (diff) | |
download | beamer-viewer-f044095b70bbc56b17332f9fb3dde85e2de40222.tar.gz |
viewer: fix loading file with drag and drop
Diffstat (limited to 'beamer/viewer')
-rw-r--r-- | beamer/viewer/viewer.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/beamer/viewer/viewer.js b/beamer/viewer/viewer.js index 85f4a91..8101b02 100644 --- a/beamer/viewer/viewer.js +++ b/beamer/viewer/viewer.js | |||
@@ -70,6 +70,7 @@ class Viewer { | |||
70 | document.body.addEventListener("drop", function(event) { | 70 | document.body.addEventListener("drop", function(event) { |
71 | event.preventDefault(); | 71 | event.preventDefault(); |
72 | event.stopPropagation(); | 72 | event.stopPropagation(); |
73 | self.fileInput.files = event.dataTransfer.files; | ||
73 | self._readFile(event.dataTransfer.files[0]); | 74 | self._readFile(event.dataTransfer.files[0]); |
74 | }); | 75 | }); |
75 | 76 | ||