mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Fixed bug where YouTube Super Chats would appear as 'undefined'
This commit is contained in:
@@ -1074,7 +1074,8 @@ function YouTubeSuperChat(data) {
|
|||||||
|
|
||||||
// Set message text
|
// Set message text
|
||||||
titleDiv.innerText = `🪙 ${data.user.name} sent a Super Chat (${data.amount})`;
|
titleDiv.innerText = `🪙 ${data.user.name} sent a Super Chat (${data.amount})`;
|
||||||
contentDiv.innerText = `${data.message}!`;
|
if (data.message)
|
||||||
|
contentDiv.innerText = `${data.message}!`;
|
||||||
|
|
||||||
AddMessageItem(instance, data.eventId);
|
AddMessageItem(instance, data.eventId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user