1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Merge pull request #1150 from Lordmau5/fix-animated-modifier-emotes

Fix animated modifier emotes
This commit is contained in:
Mike 2021-12-13 13:32:00 -05:00 committed by GitHub
commit 8758710dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1460,12 +1460,14 @@ export const AddonEmotes = {
// Is this emote a modifier?
if ( emote.modifier && last_token && last_token.modifiers && (!text.length || (text.length === 1 && text[0] === '')) ) {
if ( last_token.modifiers.indexOf(emote.token) === -1 ) {
if ( big )
last_token.modifiers.push(Object.assign({
big
}, emote.token));
else
last_token.modifiers.push(emote.token);
last_token.modifiers.push(
Object.assign({
big,
anim
},
emote.token
)
);
}
continue;