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:
parent
1102a65c9b
commit
6fd5c727e8
@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ function captureWithId(eventBus: EventEmitter<[AppEvent]>, id: string, action: s
|
||||
eventBus.emit({
|
||||
name: target,
|
||||
action,
|
||||
destination: "MixPanel",
|
||||
destination: "AutoCapture",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user