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:
@@ -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', '');
|
||||
});
|
||||
|
Reference in New Issue
Block a user