mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-18 19:50:58 -04:00
Fixed issue with profile pictures not appearing for gifted Kick subs
This commit is contained in:
@@ -327,7 +327,7 @@ async function CustomEvent(data) {
|
||||
break;
|
||||
case ('KickGiftSubscription'):
|
||||
{
|
||||
avatarEl.src = ConvertWEBPToPNG(data["recipient.profilePicture"]);
|
||||
avatarEl.src = ConvertWEBPToPNG(await GetAvatar(data["recipient.userLogin"], 'kick'));
|
||||
titleEl.innerText = `Gifted Sub`;
|
||||
|
||||
const messageEl = document.createElement('div');
|
||||
@@ -343,7 +343,7 @@ async function CustomEvent(data) {
|
||||
{
|
||||
// There is only one sub, so use the same template for a single gifted sub
|
||||
if ('recipient.userName' in data) {
|
||||
avatarEl.src = ConvertWEBPToPNG(data["recipient.profilePicture"]);
|
||||
avatarEl.src = ConvertWEBPToPNG(await GetAvatar(data["recipient.userLogin"], 'kick'));
|
||||
titleEl.innerText = `Gifted Sub`;
|
||||
|
||||
const messageEl = document.createElement('div');
|
||||
|
||||
Reference in New Issue
Block a user