mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 16:07:12 +08:00
Don't use anonnymous function
This commit is contained in:
parent
7eb6dae919
commit
7730345b48
@ -151,9 +151,9 @@ app.registerExtension({
|
|||||||
audioWidget.callback = onAudioWidgetUpdate
|
audioWidget.callback = onAudioWidgetUpdate
|
||||||
|
|
||||||
// Load saved audio file widget values if restoring from workflow
|
// Load saved audio file widget values if restoring from workflow
|
||||||
const onAfterGraphConfigured = node.onAfterGraphConfigured;
|
const onGraphConfigured = node.onGraphConfigured;
|
||||||
node.onAfterGraphConfigured = () => {
|
node.onGraphConfigured = function() {
|
||||||
onAfterGraphConfigured?.apply(this, arguments)
|
onGraphConfigured?.apply(this, arguments)
|
||||||
if (audioWidget.value) {
|
if (audioWidget.value) {
|
||||||
onAudioWidgetUpdate()
|
onAudioWidgetUpdate()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user