mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-26 22:30:19 +08:00
Update imageFeed.js
Only output images, not preview images
This commit is contained in:
parent
5b4879b966
commit
f4b593c44a
@ -68,6 +68,7 @@ app.registerExtension({
|
|||||||
api.addEventListener("executed", ({ detail }) => {
|
api.addEventListener("executed", ({ detail }) => {
|
||||||
if (detail?.output?.images) {
|
if (detail?.output?.images) {
|
||||||
for (const src of detail.output.images) {
|
for (const src of detail.output.images) {
|
||||||
|
if (src.type == 'output') { //Only show output images, not preview images
|
||||||
const img = document.createElement("img");
|
const img = document.createElement("img");
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = `/view?filename=${encodeURIComponent(src.filename)}&type=${src.type}&subfolder=${encodeURIComponent(
|
a.href = `/view?filename=${encodeURIComponent(src.filename)}&type=${src.type}&subfolder=${encodeURIComponent(
|
||||||
@ -85,6 +86,7 @@ app.registerExtension({
|
|||||||
imageList.prepend(a);
|
imageList.prepend(a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Loading…
Reference in New Issue
Block a user