Function
updateTitle
(nextPage: { id: string; display?: string })
Source from the content-addressed store, hash-verified
| 164 | } |
| 165 | |
| 166 | function 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 | |
| 176 | async function showSyncLoading({ |
| 177 | loadingOptions, |
Tested by
no test coverage detected