From c23d94881bdb67a838a08abee0ca8558d2c0d97a Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Fri, 11 Nov 2022 19:01:27 -0600 Subject: [PATCH] Fix use of JS to detect whether there is chat data --- thrimbletrimmer/scripts/stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thrimbletrimmer/scripts/stream.js b/thrimbletrimmer/scripts/stream.js index fd1c684..bd01a48 100644 --- a/thrimbletrimmer/scripts/stream.js +++ b/thrimbletrimmer/scripts/stream.js @@ -240,7 +240,7 @@ async function getStreamChatLog() { } function initialChatRender() { - if (!globalChatData) { + if (!globalChatData || globalChatData.length === 0) { return; } const videoPlayer = document.getElementById("video"); @@ -261,7 +261,7 @@ function initialChatRender() { } function updateChatRender() { - if (!globalChatData) { + if (!globalChatData || globalChatData === 0) { return; } if (!hasSegmentList()) {