Skip to content

Commit 3a7a710

Browse files
committed
chore: add another function to window
1 parent 214760d commit 3a7a710

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

frontend/src/ts/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { loadFromLocalStorage } from "./config/lifecycle";
4444
import "./input/hotkeys";
4545
import { showModal } from "./states/modals";
4646
import { lastEventLog } from "./test/test-state";
47+
import { buildEventLog } from "./test/events/data";
4748

4849
// Lock Math.random
4950
Object.defineProperty(Math, "random", {
@@ -98,6 +99,9 @@ addToGlobal({
9899
lastEventLog: () => {
99100
console.log(lastEventLog);
100101
},
102+
currentEventLog: () => {
103+
console.log(buildEventLog());
104+
},
101105
});
102106

103107
mountComponents();

0 commit comments

Comments
 (0)