Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
ff962098
Commit
ff962098
authored
Sep 08, 2023
by
MoonRide303
Browse files
Fixed Load Image preview not displaying some files (issue #1158)
parent
326577d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/scripts/widgets.js
web/scripts/widgets.js
+1
-1
No files found.
web/scripts/widgets.js
View file @
ff962098
...
@@ -335,7 +335,7 @@ export const ComfyWidgets = {
...
@@ -335,7 +335,7 @@ export const ComfyWidgets = {
subfolder
=
name
.
substring
(
0
,
folder_separator
);
subfolder
=
name
.
substring
(
0
,
folder_separator
);
name
=
name
.
substring
(
folder_separator
+
1
);
name
=
name
.
substring
(
folder_separator
+
1
);
}
}
img
.
src
=
api
.
apiURL
(
`/view?filename=
${
name
}
&type=input&subfolder=
${
subfolder
}${
app
.
getPreviewFormatParam
()}
`
);
img
.
src
=
api
.
apiURL
(
`/view?filename=
${
encodeURIComponent
(
name
)
}
&type=input&subfolder=
${
subfolder
}${
app
.
getPreviewFormatParam
()}
`
);
node
.
setSizeForImage
?.();
node
.
setSizeForImage
?.();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment