Skip to content

Commit

Permalink
Account for Twitch Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryCarlyon committed Aug 23, 2024
1 parent e36a142 commit 978f706
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eventsub/websockets/web/activity_feed/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,13 @@ function processName(display, login, is_anon) {
let knownCheermotes = {};

function buildFromFragments(chat, fragments) {
if (fragments == null) {
var el = document.createElement('span');
chat.append(el);
el.textContent = "Fragments is null";

return;
}
for (var x=0;x<fragments.length;x++) {
let { type, text, cheermote, emote, mention } = fragments[x];
switch (type) {
Expand Down

0 comments on commit 978f706

Please sign in to comment.