From 6f26fcda5acb3c193bb8fd8be3842df0b997d2b2 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Thu, 6 Feb 2025 13:50:03 -0500 Subject: [PATCH] nit --- src/scripts/widgets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/widgets.ts b/src/scripts/widgets.ts index 8edb820ff..df7965d2a 100644 --- a/src/scripts/widgets.ts +++ b/src/scripts/widgets.ts @@ -730,7 +730,7 @@ export const ComfyWidgets: Record = { return handled } - node.pasteFile = function (file) { + node.pasteFile = function (file: File) { if (file.type.startsWith('image/')) { const is_pasted = file.name === 'image.png' && file.lastModified - Date.now() < 2000