From b3d6fe7236290b9cffd7a8ff2b4aa2a52a7535bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20=20Sk=C3=B6ld?= Date: Sat, 22 Jun 2024 01:25:32 +0200 Subject: [PATCH] Remove old api --- web/js/textbox.js | 19 ------------------- 1 file changed, 19 deletions(-) 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 - } - }), - }) - }) } } },