mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 12:10:11 +00:00
@@ -169,6 +169,15 @@ app.registerExtension({
|
||||
}
|
||||
audioWidget.callback = onAudioWidgetUpdate;
|
||||
|
||||
// Load saved audio file widget values if restoring from workflow
|
||||
const onGraphConfigured = node.onGraphConfigured;
|
||||
node.onGraphConfigured = function () {
|
||||
onGraphConfigured?.apply(this, arguments);
|
||||
if (audioWidget.value) {
|
||||
onAudioWidgetUpdate();
|
||||
}
|
||||
};
|
||||
|
||||
const fileInput = document.createElement("input");
|
||||
fileInput.type = "file";
|
||||
fileInput.accept = "audio/*";
|
||||
|
||||
Reference in New Issue
Block a user