From a44aa6e446fa9979fa4479dd1e297cedff07926b Mon Sep 17 00:00:00 2001 From: Anatole Date: Fri, 1 Dec 2023 17:46:56 -0600 Subject: [PATCH] fix: animated avatars (#950) --- CHANGELOG-nightly.md | 2 +- src/site/twitch.tv/modules/avatars/AvatarsModule.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-nightly.md b/CHANGELOG-nightly.md index 4eecbc9fd..ca25655e5 100644 --- a/CHANGELOG-nightly.md +++ b/CHANGELOG-nightly.md @@ -2,7 +2,7 @@ **The changes listed here are not assigned to an official release**. -- No unreleased changes yet +- Reinstated animated avatars ### 3.0.16.1000 diff --git a/src/site/twitch.tv/modules/avatars/AvatarsModule.vue b/src/site/twitch.tv/modules/avatars/AvatarsModule.vue index 8ec706ab2..d1408fbaf 100644 --- a/src/site/twitch.tv/modules/avatars/AvatarsModule.vue +++ b/src/site/twitch.tv/modules/avatars/AvatarsModule.vue @@ -98,7 +98,7 @@ async function findAvatarClass() { const com = getVNodeFromDOM(ael); if (!com || !com.return) return; - if ((com.return.type as { displayName?: string }).displayName !== "ScAvatar") return; + if ((com.return?.return?.type as { displayName?: string }).displayName !== "Avatar") return; avatarClass.value = com.return.type as unknown as typeof avatarClass.value; }