mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
fix: ELECTRON-1331 (Update the menu element text casing) (#701)
* ELECTRON-1331 - Update the menu element text casing * ELECTRON-1331 - Track initial analytics data
This commit is contained in:
committed by
Vishwas Shashidhar
parent
7af27d4780
commit
60d5a0cdde
@@ -19,7 +19,7 @@ export enum AnalyticsActions {
|
||||
}
|
||||
|
||||
export enum AnalyticsElements {
|
||||
MENU = 'MENU',
|
||||
MENU = 'Menu',
|
||||
}
|
||||
|
||||
const MAX_EVENT_QUEUE_LENGTH = 50;
|
||||
@@ -46,6 +46,7 @@ class Analytics {
|
||||
this.preloadWindow.send(analyticsCallback, events);
|
||||
}
|
||||
});
|
||||
this.resetAnalytics();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +66,13 @@ class Analytics {
|
||||
this.analyticsEventQueue.shift();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the analytics queue
|
||||
*/
|
||||
public resetAnalytics(): void {
|
||||
this.analyticsEventQueue = [];
|
||||
}
|
||||
}
|
||||
|
||||
const analytics = new Analytics();
|
||||
|
||||
Reference in New Issue
Block a user