diff options
author | pacien | 2023-10-30 17:23:31 +0100 |
---|---|---|
committer | pacien | 2023-10-30 17:23:31 +0100 |
commit | 6174e7435d64b95c1d9878ff486d129639a18be1 (patch) | |
tree | aa2e278acb0b4db5fa9ac9af6ad8f6449dfdbfac /beamer/viewer | |
parent | f535d1008e143eb01d2a622a1f5a123acafbfb13 (diff) | |
download | beamer-viewer-6174e7435d64b95c1d9878ff486d129639a18be1.tar.gz |
viewer/start: fix file loading regression
Diffstat (limited to 'beamer/viewer')
-rw-r--r-- | beamer/viewer/viewer.js | 4 |
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); |