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

Function setMediaQueryDebugLevel

frontend/src/ts/ui.ts:63–73  ·  view source on GitHub ↗
(level: number)

Source from the content-addressed store, hash-verified

61}
62
63export function setMediaQueryDebugLevel(level: number): void {
64 const body = document.querySelector("body") as HTMLElement;
65
66 body.classList.remove("mediaQueryDebugLevel1");
67 body.classList.remove("mediaQueryDebugLevel2");
68 body.classList.remove("mediaQueryDebugLevel3");
69
70 if (level > 0 && level < 4) {
71 body.classList.add(`mediaQueryDebugLevel${level}`);
72 }
73}
74
75if (isDevEnvironment()) {
76 qs("head title")?.setText(

Callers 1

DevOptionsModalFunction · 0.90

Calls 2

removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected