From a9a17cc5c8dea1357114d50aefb8fb8b279d6103 Mon Sep 17 00:00:00 2001 From: snomiao Date: Sat, 13 Sep 2025 17:15:34 +0000 Subject: [PATCH] fix(api.ts): correct globalThis reference for location to ensure compatibility across environments --- src/scripts/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('/')