From eb3579d9a85a14aa66a7d009681ce714bcc0e34a Mon Sep 17 00:00:00 2001 From: Alf Date: Wed, 29 Sep 2021 18:34:52 -0700 Subject: [PATCH] www: fix loading frames when using file from example or url. --- www/src/components/File.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/src/components/File.vue b/www/src/components/File.vue index fc95920..754fb4a 100644 --- a/www/src/components/File.vue +++ b/www/src/components/File.vue @@ -121,9 +121,9 @@ export default { } xhr.onload = (event) => { this.progress = 100; - const file = new File([event.target.response], "file"); - this.size = file.size; - this.$worker.postMessage([ 'get_file_info', file ]); + this.file = new File([event.target.response], "file"); + this.size = this.file.size; + this.$worker.postMessage([ 'get_file_info', this.file ]); setTimeout(() => { this.showProgress = false; }, 2000); } xhr.open('GET', this.url, true);