fix: resolve vite dynamic import warning
This commit is contained in:
1 file changed
+1
-2
+1
-2
@@ -337,8 +337,7 @@ export const loadTheme = async (theme: Theme, themeContainer: HTMLElement, volum
|
|||||||
active_custom_theme.set(theme);
|
active_custom_theme.set(theme);
|
||||||
themeContainer.innerHTML = '';
|
themeContainer.innerHTML = '';
|
||||||
if (theme.scriptUrl.length > 0) {
|
if (theme.scriptUrl.length > 0) {
|
||||||
/* @vite-ignore */
|
const themeScript = await import(/* @vite-ignore */ theme.scriptUrl);
|
||||||
const themeScript = await import(theme.scriptUrl);
|
|
||||||
themeScript.mountTheme(themeContainer, { assets: theme.assets });
|
themeScript.mountTheme(themeContainer, { assets: theme.assets });
|
||||||
}
|
}
|
||||||
setGlobalVolume(volume);
|
setGlobalVolume(volume);
|
||||||
|
|||||||
Reference in new issue
Block a user