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:
commit
8758710dce
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