mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-05 22:00:54 +00:00
4.20.27
* 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:
parent
e87c99f206
commit
6c0c421d0a
7 changed files with 80 additions and 26 deletions
|
@ -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] )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue