1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-28 03:29:48 +02:00

Addevent on switch

This commit is contained in:
Kamran Ahmed
2023-03-02 22:13:25 +00:00
parent f932df8627
commit 45267693e2

View File

@@ -112,7 +112,7 @@ export class Renderer {
const pageType = this.resourceType.replace(/\b\w/g, (l) => l.toUpperCase());
const newRoadmapType = newJsonFileSlug.replace(/\b\w/g, (l) => l.toUpperCase()).replace('-', ' ');
console.log({
window.fireEvent({
// RoadmapClick, BestPracticesClick, etc
category: `${pageType.replace('-', '')}Click`,
// Roadmap Switch, BestPractices Switch, etc
@@ -120,14 +120,6 @@ export class Renderer {
label: `${pageTitle} / ${newRoadmapType}`,
});
// window.fireEvent({
// // RoadmapClick, BestPracticesClick, etc
// category: `${pageType.replace('-', '')}Click`,
// // Roadmap Switch, BestPractices Switch, etc
// action: `${pageType} Switch`,
// label: `${pageTitle} Switch`,
// });
this.jsonToSvg(newJsonUrl).then(() => {
this.containerEl.setAttribute('style', '');
});