diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.ts index 41e9d5f41..aec6b7375 100644 --- a/app/src/boot/onGetConfig.ts +++ b/app/src/boot/onGetConfig.ts @@ -179,8 +179,8 @@ export const initWindow = async (app: App) => { } catch (error) { return; } - if (urlObj && urlObj.pathname.startsWith("//plugins/")) { - const pluginNameType = urlObj.pathname.replace("//plugins/", ""); + if (urlObj && urlObj.hostname === "plugins") { + const pluginNameType = urlObj.pathname.split("/")[1]; if (!pluginNameType) { return; }