Vanessa 2025-03-09 16:35:05 +08:00
parent 10e8612c34
commit ba9335531a

View file

@ -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;
}