1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-31 06:58:30 +00:00
* Added: Option to hide emote tool-tips from the FFZ Emote Menu, which can improve performance.
* Changed: Re-add support for older browsers that do not support `crypto.randomUUID()`. I do not consider this a bug, since users should realistically not be on browsers that old for their own safety, but it is a small enough change that I'll allow it.
* Fixed: The option to report emotes not appearing on emote cards for Twitch emotes. (Closes #1450)
* Fixed: Make rich embeds in Chat on Videos slightly narrower so they don't get cut off.
* API Added: Chat message objects now have `ffz_first_msg` and `ffz_returning` flags for use by add-ons.
* API Fixed: Cut down on unnecessary warning logging from `createElement`
This commit is contained in:
SirStendec 2024-01-16 13:59:39 -05:00
parent 786275e7d7
commit 44e30e985d
7 changed files with 53 additions and 10 deletions

View file

@ -1,6 +1,7 @@
import {has} from 'utilities/object';
import type { DomFragment, OptionalArray } from './types';
import { DEBUG } from './constants';
const ATTRS = [
'accept', 'accept-charset', 'accesskey', 'action', 'align', 'alt', 'async',
@ -184,7 +185,7 @@ export function createElement(tag: string, props?: any, ...children: DomFragment
else
el.style.setProperty(key, prop[key]);
}
else
else if ( DEBUG && prop != null )
console.warn('unsupported style value', prop);
} else if ( lk === 'dataset' ) {
@ -192,7 +193,7 @@ export function createElement(tag: string, props?: any, ...children: DomFragment
for(const k in prop)
if ( has(prop, k) )
el.dataset[camelCase(k)] = prop[k];
} else
} else if ( DEBUG && prop != null )
console.warn('unsupported dataset value', prop);
} else if ( key === 'dangerouslySetInnerHTML' ) {