aboutsummaryrefslogtreecommitdiff
path: root/beamer
diff options
context:
space:
mode:
authorpacien2023-10-23 22:26:07 +0200
committerpacien2023-10-23 22:26:07 +0200
commitf044095b70bbc56b17332f9fb3dde85e2de40222 (patch)
treeb3b6f08cf9711caaf82940a562d4b338c8e70525 /beamer
parent5fc1c35cfe6e175dddbe5a494bdb8bc87164ed39 (diff)
downloadbeamer-viewer-f044095b70bbc56b17332f9fb3dde85e2de40222.tar.gz
viewer: fix loading file with drag and drop
Diffstat (limited to 'beamer')
-rw-r--r--beamer/viewer/viewer.js1
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