mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
1102a65c9b
commit
6fd5c727e8
2 files changed
+2
-5
No files matched your search
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user