Copy string should replace ALL newlines

This commit is contained in:
MarcusNyne 2024-08-19 20:50:06 -04:00
parent 54fc0980d5
commit 56a3643511
2 changed files with 9 additions and 1 deletions

View File

@ -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)

8
webui-test.bat Normal file
View File

@ -0,0 +1,8 @@
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--test-server
call webui.bat