Don't use anonnymous function

This commit is contained in:
christian-byrne 2024-07-17 15:15:15 -07:00
parent 7eb6dae919
commit 7730345b48

View File

@ -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()
} }