From 512905b9dc33b30b9039ace6904383c9726a16ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ate=C5=9F=20Uzun?= Date: Tue, 3 Oct 2023 10:22:02 +0300 Subject: [PATCH] refactor: default iconPath (#718) --- 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()); }