MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / init

Function init

frontend/src/ts/controllers/ad-controller.ts:36–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34// }
35
36function init(): void {
37 if (choice === "eg") {
38 EG.init();
39 } else {
40 PW.init();
41 }
42
43 setInterval(() => {
44 if (TestState.isActive) {
45 return;
46 }
47 if (choice === "eg") {
48 void EG.refreshVisible();
49 } else {
50 void PW.refreshVisible();
51 }
52 }, 60000);
53
54 initialised = true;
55}
56
57function removeAll(): void {
58 removeSellout();

Callers 2

reinstateFunction · 0.70
renderResultFunction · 0.70

Calls 1

initMethod · 0.80

Tested by

no test coverage detected