diff --git a/text.js b/text.js index 64186d9..f182000 100644 --- a/text.js +++ b/text.js @@ -5,7 +5,11 @@ app.registerExtension({ name: "ZuellniText", async beforeRegisterNodeDef(nodeType, nodeData, app) { if (nodeData.name === "ZuellniTextPreview") { + const onExecuted = nodeType.prototype.onExecuted; + nodeType.prototype.onExecuted = function(message) { + onExecuted?.apply(this, arguments); + if (this.widgets) { const index = this.widgets.findIndex((w) => w.name === "output");