diff --git a/facefusion/apis/static/index.html b/facefusion/apis/static/index.html index bd9796b8..61165ae0 100644 --- a/facefusion/apis/static/index.html +++ b/facefusion/apis/static/index.html @@ -409,6 +409,7 @@ const app = (function() { connections = connections.filter(c => c.toPortId !== toPortId); // only one input per port connections.push({ id: 'conn_' + nextConnId++, fromNodeId, fromPortId, toNodeId, toPortId }); renderSVG(); + saveToStorage(); // Trigger the source node's downstream propagation (handles output nodes + auto-exec) const fromNode = getNode(fromNodeId); if (fromNode) triggerDownstream(fromNode); @@ -492,7 +493,7 @@ const app = (function() { return null; } - function removeConnection(id) { connections = connections.filter(c => c.id !== id); renderSVG(); } + function removeConnection(id) { connections = connections.filter(c => c.id !== id); renderSVG(); saveToStorage(); } // ── Rendering ── function renderAll() { renderNodes(); renderSVG(); } @@ -524,7 +525,7 @@ const app = (function() {
${getPortsHTML(node)} - ${['_image_input','_image_output','_video_input','_video_output'].includes(node.key) ? '