mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 17:10:07 +00:00
fix(api.ts): correct globalThis reference for location to ensure compatibility across environments
This commit is contained in:
@@ -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('/')
|
||||
|
||||
Reference in New Issue
Block a user