From 45267693e224d54c681b9254d9940c18f5af7e1e Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 2 Mar 2023 22:13:25 +0000 Subject: [PATCH] Addevent on switch --- src/components/FrameRenderer/renderer.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/FrameRenderer/renderer.js b/src/components/FrameRenderer/renderer.js index 4a8f7d2ec..c57f81c3e 100644 --- a/src/components/FrameRenderer/renderer.js +++ b/src/components/FrameRenderer/renderer.js @@ -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', ''); });