|
|
@ -163,6 +163,15 @@ class ComfyApi extends EventTarget { |
|
|
|
return await resp.json(); |
|
|
|
return await resp.json(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Gets a list of extension's CSS style urls |
|
|
|
|
|
|
|
* @returns An array of CSS urls to include |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
async getExtensionsStyles() { |
|
|
|
|
|
|
|
const resp = await this.fetchApi("/extensions/styles", { cache: "no-store" }); |
|
|
|
|
|
|
|
return await resp.json(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Gets a list of embedding names |
|
|
|
* Gets a list of embedding names |
|
|
|
* @returns An array of script urls to import |
|
|
|
* @returns An array of script urls to import |
|
|
|