mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-25 03:58:30 +00:00
4.0.0-rc13
* Added: Custom timestamp formats for chat messages. * Fixed: Hook the correct load event for video elements in rich link tool-tips. * Fixed: Display Block and Hide Thumbnail buttons on the new game directory pages. * Changed: Use markdown for rendering item descriptions in the settings menu rather than HTML.
This commit is contained in:
parent
3eb947697c
commit
c9d743c296
14 changed files with 143 additions and 141 deletions
|
@ -78,9 +78,13 @@ export const Links = {
|
|||
content = `<img class="preview-image" src="${sanitize(data.image)}">${content}`
|
||||
|
||||
setTimeout(() => {
|
||||
if ( tip.element )
|
||||
for(const el of tip.element.querySelectorAll('video,img'))
|
||||
el.addEventListener('load', tip.update)
|
||||
if ( tip.element ) {
|
||||
for(const el of tip.element.querySelectorAll('img'))
|
||||
el.addEventListener('load', tip.update);
|
||||
|
||||
for(const el of tip.element.querySelectorAll('video'))
|
||||
el.addEventListener('loadedmetadata', tip.update);
|
||||
}
|
||||
});
|
||||
|
||||
} else if ( content.length )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue