mirror of
https://github.com/SupertigerDev/waybar-online.git
synced 2026-03-24 08:06:37 +00:00
Refactor routing and resource fetching to use BASE_URL for improved environment compatibility
This commit is contained in:
@@ -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>
|
||||
`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user