mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-14 13:35:05 +00:00
Refactor to make it easier to set the api path.
This commit is contained in:
@@ -404,7 +404,7 @@ export class ComfyApp {
|
||||
this.images = output.images;
|
||||
imagesChanged = true;
|
||||
imgURLs = imgURLs.concat(output.images.map(params => {
|
||||
return "./view?" + new URLSearchParams(params).toString() + app.getPreviewFormatParam();
|
||||
return api.apiURL("/view?" + new URLSearchParams(params).toString() + app.getPreviewFormatParam());
|
||||
}))
|
||||
}
|
||||
}
|
||||
@@ -1005,7 +1005,7 @@ export class ComfyApp {
|
||||
const extensions = await api.getExtensions();
|
||||
for (const ext of extensions) {
|
||||
try {
|
||||
await import(".." + ext);
|
||||
await import(api.apiURL(ext));
|
||||
} catch (error) {
|
||||
console.error("Error loading extension", ext, error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user