diff --git a/src/scripts/api.ts b/src/scripts/api.ts index b5c479986..ec7706c3a 100644 --- a/src/scripts/api.ts +++ b/src/scripts/api.ts @@ -296,8 +296,8 @@ export class ComfyApi extends EventTarget { constructor() { super() this.user = '' - this.api_host = gloablThis.location.host - this.api_base = gloablThis.location.pathname + this.api_host = globalThis.location.host + this.api_base = globalThis.location.pathname .split('/') .slice(0, -1) .join('/')