Fixed issue with profile pictures not appearing for gifted Kick subs

This commit is contained in:
nuttylmao
2025-07-31 07:18:52 +10:00
parent 397de9de88
commit 345f297f94
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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');
+1 -1
View File
@@ -80,10 +80,10 @@ input:focus {
#header {}
#avatar {
width: 6em;
height: 6em;
border-radius: 50%;
object-fit: cover;
overflow: hidden;
}
#title {