Update litegraph 0.8.72 (#2470)

This commit is contained in:
Chenlei Hu
2025-02-08 17:51:37 -05:00
committed by GitHub
parent 9e37738dc8
commit 88a969df07
5 changed files with 18 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
// @ts-strict-ignore
import type { IWidget } from '@comfyorg/litegraph'
import type { IStringWidget } from '@comfyorg/litegraph/dist/types/widgets'
import type { DOMWidget } from '@/scripts/domWidget'
import { useToastStore } from '@/stores/toastStore'
@@ -37,7 +38,7 @@ function getResourceURL(
}
async function uploadFile(
audioWidget: IWidget,
audioWidget: IStringWidget,
audioUIWidget: DOMWidget<HTMLAudioElement, string>,
file: File,
updateNode: boolean,
@@ -151,9 +152,9 @@ app.registerExtension({
return {
AUDIOUPLOAD(node, inputName: string) {
// The widget that allows user to select file.
const audioWidget: IWidget = node.widgets.find(
const audioWidget = node.widgets.find(
(w: IWidget) => w.name === 'audio'
)
) as IStringWidget
const audioUIWidget = node.widgets.find(
(w: IWidget) => w.name === 'audioUI'
) as unknown as DOMWidget<HTMLAudioElement, string>