Fix use of JS to detect whether there is chat data

pull/316/head
ElementalAlchemist 2 years ago committed by Mike Lang
parent 3710d9410a
commit c23d94881b

@ -240,7 +240,7 @@ async function getStreamChatLog() {
} }
function initialChatRender() { function initialChatRender() {
if (!globalChatData) { if (!globalChatData || globalChatData.length === 0) {
return; return;
} }
const videoPlayer = document.getElementById("video"); const videoPlayer = document.getElementById("video");
@ -261,7 +261,7 @@ function initialChatRender() {
} }
function updateChatRender() { function updateChatRender() {
if (!globalChatData) { if (!globalChatData || globalChatData === 0) {
return; return;
} }
if (!hasSegmentList()) { if (!hasSegmentList()) {

Loading…
Cancel
Save