Remove old api

This commit is contained in:
Lucas Sköld
2024-06-22 01:25:32 +02:00
parent 12b262c5db
commit b3d6fe7236
-19
View File
@@ -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
}
}),
})
})
}
}
},