From 593258193819d8004ba0ff23c7f015c2e73690ec Mon Sep 17 00:00:00 2001 From: Mustafa UZUN Date: Thu, 28 Sep 2023 21:54:47 +0300 Subject: [PATCH] refactor: default iconPath --- src/utilities/asset-paths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }