mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-11 05:31:56 +00:00
4.20.18
* Added: Setting to apply username colors to chat mentions. (Closes #753) * Changed: Stream links now use a darker color. * Changed: Make the icon for FFZ's Alternative Viewer Count slightly larger. * Fixed: Crazy flickering when disabling hosting. * Fixed: Stream links showing up on the home page and not just the live page. * Fixed: Better detection for channels where the Host button should appear. * Fixed: FFZ's Alternative Viewer Count metadata not updating correctly when FS Chat is in use.
This commit is contained in:
parent
2f105eb3c4
commit
fa3d73e05a
10 changed files with 158 additions and 14 deletions
|
@ -13,6 +13,20 @@ export default class Timing extends Module {
|
|||
super(...args);
|
||||
|
||||
this.events = [];
|
||||
|
||||
this._listener = null;
|
||||
|
||||
this.on('settings:enabled', () => {
|
||||
this.resolve('settings').addUI('timing.info', {
|
||||
path: 'Debugging > Performance >> Info @{"sort": -1000}',
|
||||
force_seen: true,
|
||||
component: 'performance',
|
||||
|
||||
setListener: fn => this._listener = fn,
|
||||
getEvents: () => this.events,
|
||||
getTiming: () => this
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
__time() { /* no-op */ } // eslint-disable-line class-methods-use-this
|
||||
|
@ -20,5 +34,7 @@ export default class Timing extends Module {
|
|||
addEvent(event) {
|
||||
event.ts = performance.now();
|
||||
this.events.push(event);
|
||||
if ( this._listener )
|
||||
this._listener(event);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue