mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-16 18:09:00 +08:00
Copy string should replace ALL newlines
This commit is contained in:
parent
54fc0980d5
commit
56a3643511
@ -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
8
webui-test.bat
Normal file
@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
set PYTHON=
|
||||
set GIT=
|
||||
set VENV_DIR=
|
||||
set COMMANDLINE_ARGS=--test-server
|
||||
|
||||
call webui.bat
|
Loading…
x
Reference in New Issue
Block a user