mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-16 18:09:00 +08:00
Fixed javascript linting
This commit is contained in:
parent
0a605775e4
commit
67309750da
@ -214,12 +214,12 @@ function uiElementInSight(el) {
|
||||
}
|
||||
|
||||
function uiCopyElementText(el) {
|
||||
var text = el.innerText
|
||||
var text = el.innerText;
|
||||
if (text.startsWith('"')) {
|
||||
text = text.substring(1, text.length-1).replaceAll('\\n', '\n')
|
||||
text = text.substring(1, text.length - 1).replaceAll('\\n', '\n');
|
||||
}
|
||||
|
||||
navigator.clipboard.writeText(text)
|
||||
|
||||
navigator.clipboard.writeText(text);
|
||||
|
||||
el.classList.remove('animate');
|
||||
setTimeout(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user