dashboard/shell/utils/title.ts

4 lines
156 B
TypeScript

export function updatePageTitle(...breadcrumb: (string | null | undefined | false)[]): void {
document.title = breadcrumb.filter((s) => s).join(' - ');
}