Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Images can now be uploaded by dragging from another window in chromium.

comfyanonymous5ac96897e978
diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js
index d4a15ba84..adf5f26fa 100644
--- a/web/scripts/widgets.js
+++ b/web/scripts/widgets.js
@@ -433,7 +433,7 @@ export const ComfyWidgets = {
// Add handler to check if an image is being dragged over our node
node.onDragOver = function (e) {
if (e.dataTransfer && e.dataTransfer.items) {
- const image = [...e.dataTransfer.items].find((f) => f.kind === "file" && f.type.startsWith("image/"));
+ const image = [...e.dataTransfer.items].find((f) => f.kind === "file");
return !!image;
}