From 05a30fce3f825b7010168a04679295c187c460bf Mon Sep 17 00:00:00 2001 From: Zuellni <123005779+Zuellni@users.noreply.github.com> Date: Tue, 21 Nov 2023 01:56:57 +0100 Subject: [PATCH] Remove unnecessary line in preview --- text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text.js b/text.js index 2c22395..64186d9 100644 --- a/text.js +++ b/text.js @@ -16,9 +16,9 @@ app.registerExtension({ this.widgets.length = index; } - this.widgets.length = 1; const options = ["STRING", {multiline: true }] const widget = ComfyWidgets["STRING"](this, "output", options, app).widget; + widget.inputEl.readOnly = true; widget.inputEl.style.opacity = 0.7; widget.value = message.text;