🆗 修复不能同步图片的bug

This commit is contained in:
jimlee 2023-03-30 14:18:29 +08:00
parent 2adeb5a740
commit 0948b1eeb7
2 changed files with 5 additions and 2 deletions

View File

@ -240,6 +240,9 @@
}
function saveValue() {
if (textarea.innerHTML === "") {
return
}
let href = ""
for (element of textarea.childNodes) {
if (href === "" && element.href !== undefined && element.href !== "") {
@ -251,7 +254,7 @@
if (href !== "") {
nowValue = href;
} else {
nowValue = textarea.innerText
nowValue = textarea.innerText === "" ? textarea.innerHTML : textarea.innerText
}
if (lastValue !== nowValue && lastUpdate != null && Date.now() - lastUpdate > 3000) {
lastValue = nowValue

View File

@ -1,2 +1,2 @@
mvn clean package -DskipTests=true
scp target/temp-clipboard-1.0-SNAPSHOT-executable.jar root@iloli.vip:~/clipboard/
scp -P4422 target/temp-clipboard-1.0-SNAPSHOT-executable.jar jimlee@2ha.me:~/services/clipboard/