diff --git a/src/utilities/asset-paths.ts b/src/utilities/asset-paths.ts index c8ef557d..19387e99 100644 --- a/src/utilities/asset-paths.ts +++ b/src/utilities/asset-paths.ts @@ -11,5 +11,5 @@ export function getIconPath() { const modulePath = import.meta.url; if (modulePath) { - setIconPath(modulePath.split("/").slice(0, -1).concat("assets").join("/")); + setIconPath(new URL(iconPath, modulePath).toString()); }