From 8586aa8f49aebf54d237f2ec53438ac6bc38fb99 Mon Sep 17 00:00:00 2001 From: Alex Kaminskii Date: Mon, 30 Jan 2023 16:47:16 +0100 Subject: [PATCH] fixup! fix(player): no file request on start when live --- frontend/app/player/web/MessageManager.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/app/player/web/MessageManager.ts b/frontend/app/player/web/MessageManager.ts index 877a920df..9151a30d7 100644 --- a/frontend/app/player/web/MessageManager.ts +++ b/frontend/app/player/web/MessageManager.ts @@ -135,8 +135,6 @@ export default class MessageManager { }) this.activityManager = new ActivityManager(this.session.duration.milliseconds) // only if not-live - - void this.loadMessages() } private setCSSLoading = (cssLoading: boolean) => { @@ -195,7 +193,7 @@ export default class MessageManager { // this.state.update({ filesLoaded: true }) } - private async loadMessages() { + async loadMessages() { this.setMessagesLoading(true) // TODO: reuseable decryptor instance const createNewParser = (shouldDecrypt = true) => { @@ -234,7 +232,7 @@ export default class MessageManager { .catch(this.onFileReadFailed) .finally(this.onFileReadFinally); - // load devtools + // load devtools (TODO: start after the first DOM file download) if (this.session.devtoolsURL?.length) { this.state.update({ devtoolsLoading: true }) loadFiles(this.session.devtoolsURL, createNewParser())