From ba9335531ae489aa20a18c550d906a4c27dbbf2c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 9 Mar 2025 16:35:05 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14314 --- app/src/boot/onGetConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }