Addevent on switch

pull/3524/head
Kamran Ahmed 2 years ago
parent f932df8627
commit 45267693e2
  1. 10
      src/components/FrameRenderer/renderer.js

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

Loading…
Cancel
Save