mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 05:15:54 +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?
|
// Is this emote a modifier?
|
||||||
if ( emote.modifier && last_token && last_token.modifiers && (!text.length || (text.length === 1 && text[0] === '')) ) {
|
if ( emote.modifier && last_token && last_token.modifiers && (!text.length || (text.length === 1 && text[0] === '')) ) {
|
||||||
if ( last_token.modifiers.indexOf(emote.token) === -1 ) {
|
if ( last_token.modifiers.indexOf(emote.token) === -1 ) {
|
||||||
if ( big )
|
last_token.modifiers.push(
|
||||||
last_token.modifiers.push(Object.assign({
|
Object.assign({
|
||||||
big
|
big,
|
||||||
}, emote.token));
|
anim
|
||||||
else
|
},
|
||||||
last_token.modifiers.push(emote.token);
|
emote.token
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue