Merge pull request #149 from SampleTexting/stableswarmUIfixes

Relative Pathing fixes
This commit is contained in:
pythongosssss
2024-01-03 17:46:34 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ app.registerExtension({
api.addEventListener("executed", ({ detail }) => {
if (visible && detail?.output?.images) {
for (const src of detail.output.images) {
const href = `/view?filename=${encodeURIComponent(src.filename)}&type=${
const href = `./view?filename=${encodeURIComponent(src.filename)}&type=${
src.type
}&subfolder=${encodeURIComponent(src.subfolder)}&t=${+new Date()}`;
+1 -1
View File
@@ -51,7 +51,7 @@ const ext = {
const images = detail?.output?.images;
if (!images) return;
const format = app.getPreviewFormatParam();
const src = `/view?filename=${encodeURIComponent(images[0].filename)}&type=${
const src = `./view?filename=${encodeURIComponent(images[0].filename)}&type=${
images[0].type
}&subfolder=${encodeURIComponent(images[0].subfolder)}&t=${+new Date()}${format}`;
show(src, detail.node);