MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / apply

Function apply

apps/start/src/hooks/use-project-document-title.ts:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 if (!projectName) return;
21
22 const apply = () => {
23 const current = document.title;
24 if (current === lastApplied.current) return;
25 const next = inject(current, projectName);
26 if (next !== current) {
27 document.title = next;
28 }
29 lastApplied.current = document.title;
30 };
31
32 apply();
33

Callers 1

useProjectDocumentTitleFunction · 0.85

Calls 1

injectFunction · 0.85

Tested by

no test coverage detected