Refactor routing and resource fetching to use BASE_URL for improved environment compatibility

This commit is contained in:
Supertiger
2025-08-01 18:20:47 +01:00
parent e9f2ac6063
commit 224e6ed9fd
6 changed files with 17 additions and 8 deletions

View File

@@ -3,6 +3,8 @@ const appElement = document.getElementById("app")!;
export const createRootPage = async () => {
appElement.innerHTML = `
<iframe id="waybar-iframe" src="/waybar"></iframe>
<iframe id="waybar-iframe" src="${
import.meta.env.BASE_URL
}/waybar"></iframe>
`;
};