From 56a3643511d6b57c56f9eecc394f58172a31123f Mon Sep 17 00:00:00 2001 From: MarcusNyne <69087098+MarcusNyne@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:50:06 -0400 Subject: [PATCH] Copy string should replace ALL newlines --- script.js | 2 +- webui-test.bat | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 webui-test.bat diff --git a/script.js b/script.js index c554e9115..867e868eb 100644 --- a/script.js +++ b/script.js @@ -216,7 +216,7 @@ function uiElementInSight(el) { function uiCopyElementText(el) { var text = el.innerText if (text.startsWith('"')) { - text = text.substring(1, text.length-1).replace('\\n', '\n') + text = text.substring(1, text.length-1).replaceAll('\\n', '\n') } navigator.clipboard.writeText(text) diff --git a/webui-test.bat b/webui-test.bat new file mode 100644 index 000000000..d7bb4566a --- /dev/null +++ b/webui-test.bat @@ -0,0 +1,8 @@ +@echo off + +set PYTHON= +set GIT= +set VENV_DIR= +set COMMANDLINE_ARGS=--test-server + +call webui.bat