1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 10:16:57 +00:00
* Changed: Update badge colors after Twitch fixed the colors of the new badges.
* Fixed: Change the DOM output for emotes in chat to what BetterTTV expects to allow for basic compatibility with BetterTTV's modifier emotes for users not using the `BetterTTV Emotes` add-on but instead BetterTTV itself.
* Removed: The unused `viewer_cards` and `logviewer` modules. Those are going to be moved into add-ons for further development.
* API Added: `chat:user-click` event when a username is clicked in chat.
This commit is contained in:
SirStendec 2019-12-06 15:56:58 -05:00
parent 1fe7c417f3
commit 2803b211c5
10 changed files with 48 additions and 26 deletions

View file

@ -941,17 +941,18 @@ const render_emote = (token, createElement, wrapped) => {
if ( wrapped )
return emote;
return createElement('span', {
return createElement('div', {
className: 'ffz--inline',
attrs: {
'data-a-target': 'emote-name'
'data-test-selector': 'emote-button'
}
}, [emote]);
}
return createElement('span', {
class: `${EMOTE_CLASS} modified-emote`,
return createElement('div', {
class: 'ffz--inline modified-emote',
attrs: {
'data-a-target': 'emote-name',
'data-test-selector': 'emote-button',
'data-provider': token.provider,
'data-id': token.id,
'data-set': token.set,
@ -994,12 +995,12 @@ export const AddonEmotes = {
if ( wrapped )
return emote;
return (<span data-a-target="emote-name">{emote}</span>);
return (<div class="ffz--inline" data-test-selector="emote-button">{emote}</div>);
}
return (<span
class={`${EMOTE_CLASS} modified-emote`}
data-a-target="emote-name"
return (<div
class="ffz--inline modified-emote"
data-test-selector="emote-button"
data-provider={token.provider}
data-id={token.id}
data-set={token.set}
@ -1008,7 +1009,7 @@ export const AddonEmotes = {
>
{emote}
{mods.map(t => <span key={t.text}>{this.tokenizers.emote.render.call(this, t, createElement, true)}</span>)}
</span>);
</div>);
},
async tooltip(target, tip) {