fix: titlebar css path

This commit is contained in:
smartfrigde 2024-05-15 20:52:32 +02:00
parent aeafcffdd8
commit 7cd42a945c

View file

@ -21,8 +21,8 @@ export function injectTitlebar(): void {
} else {
document.getElementById("app-mount")!.prepend(elem);
}
const titlebarcssPath = path.join(import.meta.dirname, "../", "../", "/content/css/titlebar.css");
const wordmarkcssPath = path.join(import.meta.dirname, "../", "../", "/content/css/logos.css");
const titlebarcssPath = path.join(import.meta.dirname, "../", "/content/css/titlebar.css");
const wordmarkcssPath = path.join(import.meta.dirname, "../", "/content/css/logos.css");
addStyle(fs.readFileSync(titlebarcssPath, "utf8"));
addStyle(fs.readFileSync(wordmarkcssPath, "utf8"));
document.body.setAttribute("customTitlebar", "");