From 6174e7435d64b95c1d9878ff486d129639a18be1 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 30 Oct 2023 17:23:31 +0100 Subject: viewer/start: fix file loading regression --- beamer/viewer/viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'beamer/viewer') 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 { _readFile(file) { this.fileReader.onload = () => { - this._setPresentation(new Uint8Array(this.result)); - } + this._setPresentation(new Uint8Array(this.fileReader.result)); + }; this.fileReader.abort(); this.fileReader.readAsArrayBuffer(file); -- cgit v1.2.3