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() {
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()) {

Loading…
Cancel
Save