Skip to content

Commit

Permalink
Merge pull request #874 from 3DStreet/log-history
Browse files Browse the repository at this point in the history
log history
  • Loading branch information
kfarr committed Sep 27, 2024
2 parents 8b81538 + 44795fb commit 9a997a8
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 9a997a8

Please sign in to comment.