Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Feb 6, 2025
1 parent 3a203ce commit 6f26fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/widgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = {
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
Expand Down

0 comments on commit 6f26fcd

Please sign in to comment.