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
60b4c31a
Commit
60b4c31a
authored
Apr 06, 2023
by
comfyanonymous
Browse files
Add webp images to upload accept list.
parent
f84f2508
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 @
60b4c31a
...
@@ -306,7 +306,7 @@ export const ComfyWidgets = {
...
@@ -306,7 +306,7 @@ export const ComfyWidgets = {
const
fileInput
=
document
.
createElement
(
"
input
"
);
const
fileInput
=
document
.
createElement
(
"
input
"
);
Object
.
assign
(
fileInput
,
{
Object
.
assign
(
fileInput
,
{
type
:
"
file
"
,
type
:
"
file
"
,
accept
:
"
image/jpeg,image/png
"
,
accept
:
"
image/jpeg,image/png
,image/webp
"
,
style
:
"
display: none
"
,
style
:
"
display: none
"
,
onchange
:
async
()
=>
{
onchange
:
async
()
=>
{
if
(
fileInput
.
files
.
length
)
{
if
(
fileInput
.
files
.
length
)
{
...
...
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