feat: render webapp preview metadata

This commit is contained in:
3252a8
2026-05-24 22:54:01 +03:00
parent e15cbffdb1
commit 0449ded505
5 changed files with 99 additions and 12 deletions
+7
View File
@@ -80,3 +80,10 @@ export function applyFavicon(brand = {}) {
favicon.removeAttribute("type");
}
}
export function applyDocumentTitle(title) {
if (typeof document === "undefined") return;
const nextTitle = String(title || "").trim();
if (!nextTitle || document.title === nextTitle) return;
document.title = nextTitle;
}