mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-11 21:51:56 +00:00
4.20.16
* Changed: Metadata now uses the global FFZ tool-tip handler when rendering tool-tips. * Fixed: Metadata pop-ups not appearing when an element is open fullscreen. * API Added: Callback for changing popper options before opening a tool-tip. * API Added: Timing for module loading. WIP.
This commit is contained in:
parent
1c2bf202fc
commit
3d88836a0e
9 changed files with 172 additions and 17 deletions
24
src/utilities/timing.js
Normal file
24
src/utilities/timing.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
'use strict';
|
||||
|
||||
// ============================================================================
|
||||
// Timing Tracker
|
||||
// For figuring out FFZ loading
|
||||
// ============================================================================
|
||||
|
||||
import Module from 'utilities/module';
|
||||
|
||||
|
||||
export default class Timing extends Module {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
this.events = [];
|
||||
}
|
||||
|
||||
__time() { /* no-op */ } // eslint-disable-line class-methods-use-this
|
||||
|
||||
addEvent(event) {
|
||||
event.ts = performance.now();
|
||||
this.events.push(event);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue