Skip to content

Commit e82efb8

Browse files
committed
test webapp
1 parent 74f9008 commit e82efb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/themeLoader.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ export const loadTheme = (themeName: string, isCustom: boolean = false) => {
2020
// Load built-in theme
2121
const link = document.createElement('link');
2222
link.rel = 'stylesheet';
23-
// Use relative path for production builds
24-
const base = import.meta.env.BASE_URL || '/';
25-
link.href = `${base}src/themes/${themeName}.css`;
23+
link.href = `/src/themes/${themeName}.css`;
2624
link.setAttribute('data-theme', themeName);
2725
document.head.appendChild(link);
2826
}

0 commit comments

Comments
 (0)