aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2023-10-30 17:23:31 +0100
committerpacien2023-10-30 17:23:31 +0100
commit6174e7435d64b95c1d9878ff486d129639a18be1 (patch)
treeaa2e278acb0b4db5fa9ac9af6ad8f6449dfdbfac
parentf535d1008e143eb01d2a622a1f5a123acafbfb13 (diff)
downloadbeamer-viewer-6174e7435d64b95c1d9878ff486d129639a18be1.tar.gz
viewer/start: fix file loading regression
-rw-r--r--beamer/viewer/viewer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/beamer/viewer/viewer.js b/beamer/viewer/viewer.js
index fa8d04e..16764eb 100644
--- a/beamer/viewer/viewer.js
+++ b/beamer/viewer/viewer.js
@@ -46,8 +46,8 @@ class Viewer {
46 46
47 _readFile(file) { 47 _readFile(file) {
48 this.fileReader.onload = () => { 48 this.fileReader.onload = () => {
49 this._setPresentation(new Uint8Array(this.result)); 49 this._setPresentation(new Uint8Array(this.fileReader.result));
50 } 50 };
51 51
52 this.fileReader.abort(); 52 this.fileReader.abort();
53 this.fileReader.readAsArrayBuffer(file); 53 this.fileReader.readAsArrayBuffer(file);