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;
|
break;
|
||||||
case ('KickGiftSubscription'):
|
case ('KickGiftSubscription'):
|
||||||
{
|
{
|
||||||
avatarEl.src = ConvertWEBPToPNG(data["recipient.profilePicture"]);
|
avatarEl.src = ConvertWEBPToPNG(await GetAvatar(data["recipient.userLogin"], 'kick'));
|
||||||
titleEl.innerText = `Gifted Sub`;
|
titleEl.innerText = `Gifted Sub`;
|
||||||
|
|
||||||
const messageEl = document.createElement('div');
|
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
|
// There is only one sub, so use the same template for a single gifted sub
|
||||||
if ('recipient.userName' in data) {
|
if ('recipient.userName' in data) {
|
||||||
avatarEl.src = ConvertWEBPToPNG(data["recipient.profilePicture"]);
|
avatarEl.src = ConvertWEBPToPNG(await GetAvatar(data["recipient.userLogin"], 'kick'));
|
||||||
titleEl.innerText = `Gifted Sub`;
|
titleEl.innerText = `Gifted Sub`;
|
||||||
|
|
||||||
const messageEl = document.createElement('div');
|
const messageEl = document.createElement('div');
|
||||||
|
|||||||
@@ -80,10 +80,10 @@ input:focus {
|
|||||||
#header {}
|
#header {}
|
||||||
|
|
||||||
#avatar {
|
#avatar {
|
||||||
|
width: 6em;
|
||||||
height: 6em;
|
height: 6em;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#title {
|
#title {
|
||||||
|
|||||||
Reference in New Issue
Block a user