feat(editor): Overhaul document title management (#10999)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-09-30 10:57:25 +02:00
committed by GitHub
parent 63e6f1fa38
commit bb2895689f
31 changed files with 155 additions and 83 deletions

View File

@@ -48,10 +48,6 @@ export const sanitizeIfString = <T>(message: T): string | T => {
return message;
};
export function setPageTitle(title: string) {
window.document.title = title;
}
export function convertRemToPixels(rem: string) {
return parseInt(rem, 10) * parseFloat(getComputedStyle(document.documentElement).fontSize);
}