mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Fix animated modifier emotes
This commit is contained in:
parent
c0f7747428
commit
5e2d02b09e
1 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue