1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Rename destination

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka 2022-05-30 10:34:40 +03:00
parent 1102a65c9b
commit 6fd5c727e8
2 changed files with 2 additions and 5 deletions

View File

@ -39,14 +39,11 @@ function getEventName(el: HTMLElement) {
function captureMouseEvent(eventBus: EventEmitter<[AppEvent]>, event: React.MouseEvent) { function captureMouseEvent(eventBus: EventEmitter<[AppEvent]>, event: React.MouseEvent) {
const name = getEventName(event.target as HTMLElement); const name = getEventName(event.target as HTMLElement);
const action = capitalize(event.type);
console.log(`[captureMouseEvent]: ${action} ${name}`);
eventBus.emit({ eventBus.emit({
destination: "MixPanel",
name, name,
action: capitalize(event.type), action: capitalize(event.type),
destination: "AutoCapture",
}); });
} }

View File

@ -20,7 +20,7 @@ function captureWithId(eventBus: EventEmitter<[AppEvent]>, id: string, action: s
eventBus.emit({ eventBus.emit({
name: target, name: target,
action, action,
destination: "MixPanel", destination: "AutoCapture",
}); });
} }