mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
add audio preview widgets to new save nodes (#3840)
This commit is contained in:
@@ -90,7 +90,13 @@ app.registerExtension({
|
|||||||
name: 'Comfy.AudioWidget',
|
name: 'Comfy.AudioWidget',
|
||||||
async beforeRegisterNodeDef(nodeType, nodeData) {
|
async beforeRegisterNodeDef(nodeType, nodeData) {
|
||||||
if (
|
if (
|
||||||
['LoadAudio', 'SaveAudio', 'PreviewAudio'].includes(
|
[
|
||||||
|
'LoadAudio',
|
||||||
|
'SaveAudio',
|
||||||
|
'PreviewAudio',
|
||||||
|
'SaveAudioMP3',
|
||||||
|
'SaveAudioOpus'
|
||||||
|
].includes(
|
||||||
// @ts-expect-error fixme ts strict error
|
// @ts-expect-error fixme ts strict error
|
||||||
nodeType.prototype.comfyClass
|
nodeType.prototype.comfyClass
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user