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

Function updateTitle

frontend/src/ts/controllers/page-controller.ts:166–174  ·  view source on GitHub ↗
(nextPage: { id: string; display?: string })

Source from the content-addressed store, hash-verified

164}
165
166function updateTitle(nextPage: { id: string; display?: string }): void {
167 if (nextPage.id === "test") {
168 Misc.updateTitle();
169 } else {
170 const titleString =
171 nextPage.display ?? Strings.capitalizeFirstLetterOfEachWord(nextPage.id);
172 Misc.updateTitle(`${titleString} | Monkeytype`);
173 }
174}
175
176async function showSyncLoading({
177 loadingOptions,

Callers 1

changeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected