diff --git a/web/js/textbox.js b/web/js/textbox.js index 889083c..d6c3699 100644 --- a/web/js/textbox.js +++ b/web/js/textbox.js @@ -151,26 +151,7 @@ app.registerExtension({ nodeType.prototype.onNodeCreated = function () { this.populate(); - // Bind the getTextboxText to this instance this.getTextboxText = this.getTextboxText.bind(this); - - api.addEventListener('textbox', (event) => { - const data = event.detail; - console.log("ID:", data.id); - const outputText = this.getTextboxText(); - api.fetchApi(`${SettingUtils.API_PREFIX}/textbox_string`, { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - node_id: data.id, - outputs: { - output: outputText - } - }), - }) - }) } } },