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) {
|
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",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user