You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Auto-fix lint errors
This commit is contained in:
@@ -31,11 +31,11 @@ interface PerformanceDataListener {
|
||||
export default class PerformanceMonitor {
|
||||
static _instance: PerformanceMonitor;
|
||||
|
||||
private START_PREFIX = "start:"
|
||||
private STOP_PREFIX = "stop:"
|
||||
private START_PREFIX = "start:";
|
||||
private STOP_PREFIX = "stop:";
|
||||
|
||||
private listeners: PerformanceDataListener[] = []
|
||||
private entries: PerformanceEntry[] = []
|
||||
private listeners: PerformanceDataListener[] = [];
|
||||
private entries: PerformanceEntry[] = [];
|
||||
|
||||
public static get instance(): PerformanceMonitor {
|
||||
if (!PerformanceMonitor._instance) {
|
||||
@@ -99,7 +99,7 @@ export default class PerformanceMonitor {
|
||||
|
||||
this.listeners.forEach(listener => {
|
||||
if (this.shouldEmit(listener, measurement)) {
|
||||
listener.callback([measurement])
|
||||
listener.callback([measurement]);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -167,11 +167,10 @@ export default class PerformanceMonitor {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Convenience exports
|
||||
export {
|
||||
PerformanceEntryNames,
|
||||
}
|
||||
};
|
||||
|
||||
// Exposing those to the window object to bridge them from tests
|
||||
window.mxPerformanceMonitor = PerformanceMonitor.instance;
|
||||
|
||||
Reference in New Issue
Block a user