fix(api.ts): correct globalThis reference for location to ensure compatibility across environments

This commit is contained in:
snomiao
2025-09-13 17:15:34 +00:00
parent 40a13ea1cf
commit a9a17cc5c8

View File

@@ -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('/')