1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
* Added: Support for Follower Emotes in the emote menu as well as tool-tips. (Closes #1071)
* Fixed: The emote menu recalculating cached state unnecessarily due to Twitch unnecessarily recreating identical data structures.
* Fixed: Hiding Unfollow buttons. (Closes #1070)
This commit is contained in:
SirStendec 2021-06-30 15:51:37 -04:00
parent 3fbf6ed961
commit fc5b33a904
9 changed files with 145 additions and 32 deletions

View file

@ -1170,15 +1170,15 @@ function determineEmoteType(emote) {
function determineSetType(set) {
const id = parseInt(set.id, 10);
const id = /^\d+$/.test(set.id) ? parseInt(set.id, 10) : null;
if ( TWITCH_GLOBAL_SETS.includes(id) )
if ( id && TWITCH_GLOBAL_SETS.includes(id) )
return EmoteTypes.Global;
if ( TWITCH_POINTS_SETS.includes(id) )
if ( id && TWITCH_POINTS_SETS.includes(id) )
return EmoteTypes.ChannelPoints;
if ( TWITCH_PRIME_SETS.includes(id) )
if ( id && TWITCH_PRIME_SETS.includes(id) )
return EmoteTypes.Prime;
if ( id == 300374282 )