diff --git a/packages/stablestudio-plugin-webui/src/index.ts b/packages/stablestudio-plugin-webui/src/index.ts index 2f4faf8..b1677ce 100644 --- a/packages/stablestudio-plugin-webui/src/index.ts +++ b/packages/stablestudio-plugin-webui/src/index.ts @@ -152,7 +152,11 @@ export const createPlugin = StableStudio.createPlugin<{ } } - const webuiHostUrl = localStorage.getItem("webui-host-url") ?? "http://127.0.0.1:7861"; + let webuiHostUrl = localStorage.getItem("webui-host-url"); + + if (webuiHostUrl === "" || !webuiHostUrl) { + webuiHostUrl = "http://127.0.0.1:7861"; + } return { ...webuiLoad(webuiHostUrl),