Skip to content

Commit

Permalink
log history
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Gupta authored and Rahul Gupta committed Sep 20, 2024
1 parent edd38b4 commit 44795fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/editor/lib/history.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Events from './Events';
import posthog from 'posthog-js';

export class History {
constructor(editor) {
Expand Down Expand Up @@ -39,6 +40,10 @@ export class History {
}

cmd.name = optionalName !== undefined ? optionalName : cmd.name;
posthog.capture('execute_command', {
name: cmd.name
});

cmd.execute();

this.lastCmdTime = Date.now();
Expand Down

0 comments on commit 44795fb

Please sign in to comment.