From 6fd5c727e8fe494cb09fd93e86306647451eefd5 Mon Sep 17 00:00:00 2001 From: Juho Heikka Date: Mon, 30 May 2022 10:34:40 +0300 Subject: [PATCH] Rename destination Signed-off-by: Juho Heikka --- src/renderer/telemetry/capture-mouse-event.injectable.ts | 5 +---- src/renderer/telemetry/capture-with-id.injectable.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer/telemetry/capture-mouse-event.injectable.ts b/src/renderer/telemetry/capture-mouse-event.injectable.ts index 778d523182..501bdd847b 100644 --- a/src/renderer/telemetry/capture-mouse-event.injectable.ts +++ b/src/renderer/telemetry/capture-mouse-event.injectable.ts @@ -39,14 +39,11 @@ function getEventName(el: HTMLElement) { function captureMouseEvent(eventBus: EventEmitter<[AppEvent]>, event: React.MouseEvent) { const name = getEventName(event.target as HTMLElement); - const action = capitalize(event.type); - - console.log(`[captureMouseEvent]: ${action} ${name}`); eventBus.emit({ - destination: "MixPanel", name, action: capitalize(event.type), + destination: "AutoCapture", }); } diff --git a/src/renderer/telemetry/capture-with-id.injectable.ts b/src/renderer/telemetry/capture-with-id.injectable.ts index 1e6af1b368..efcff14bae 100644 --- a/src/renderer/telemetry/capture-with-id.injectable.ts +++ b/src/renderer/telemetry/capture-with-id.injectable.ts @@ -20,7 +20,7 @@ function captureWithId(eventBus: EventEmitter<[AppEvent]>, id: string, action: s eventBus.emit({ name: target, action, - destination: "MixPanel", + destination: "AutoCapture", }); }