From 2378077a3cbb51c06072c1b37b9cf1493b2e6a6d Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Mon, 7 Apr 2025 17:30:39 +1000 Subject: [PATCH] emote_set --- public/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 98e8690..184050f 100644 --- a/public/script.js +++ b/public/script.js @@ -51,7 +51,10 @@ class ChatApp { } const emotesData = await response.json(); - if (!emotesData?.emote_set?.emotes) return {}; + if (!emotesData?.emote_set?.emotes) { + console.warn("7TV emotes data is null or does not contain emotes. Continuing without 7TV emotes."); + return {}; + } return emotesData.emote_set.emotes.reduce((acc, emote) => { acc[emote.name] = `https://cdn.7tv.app/emote/${emote.id}/1x.webp`;