Add webp images to upload accept list.

This commit is contained in:
comfyanonymous 2023-04-06 22:22:59 -04:00
parent f84f2508cc
commit 60b4c31ab3

View File

@ -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) {