MCPcopy Index your code
hub / github.com/github/awesome-copilot / updateModalTitle

Function updateModalTitle

website/src/scripts/modal.ts:165–176  ·  view source on GitHub ↗
(titleText: string, filePath: string)

Source from the content-addressed store, hash-verified

163}
164
165function updateModalTitle(titleText: string, filePath: string): void {
166 const title = document.getElementById("modal-title");
167 if (title) {
168 title.textContent = titleText;
169 }
170
171 const fileName = getFileName(filePath);
172 document.title =
173 titleText === fileName
174 ? `${titleText} | Awesome GitHub Copilot`
175 : `${titleText} · ${fileName} | Awesome GitHub Copilot`;
176}
177
178function getModalBody(): HTMLElement | null {
179 return document.querySelector<HTMLElement>(".modal-body");

Callers 1

openFileModalFunction · 0.85

Calls 1

getFileNameFunction · 0.85

Tested by

no test coverage detected