1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-05 22:00:54 +00:00
* Fixed: Clicking an emote in chat not opening an emote information card.
* API Added: Link information can now have a `refresh` value, which will have the client automatically refresh link data after at a certain time.
This commit is contained in:
SirStendec 2020-08-07 01:32:18 -04:00
parent e87c99f206
commit 6c0c421d0a
7 changed files with 80 additions and 26 deletions

View file

@ -1560,11 +1560,11 @@ export default class Chat extends Module {
}
get_link_info(url, no_promises) {
get_link_info(url, no_promises, refresh = false) {
let info = this._link_info[url];
const expires = info && info[1];
if ( expires && Date.now() > expires )
if ( (info && info[0] && refresh) || (expires && Date.now() > expires) )
info = this._link_info[url] = null;
if ( info && info[0] )