diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index d36429a..a606702 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -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 diff --git a/upload.sh b/upload.sh index 7d49009..d08ee77 100644 --- a/upload.sh +++ b/upload.sh @@ -1,2 +1,2 @@ mvn clean package -DskipTests=true -scp target/temp-clipboard-1.0-SNAPSHOT-executable.jar root@iloli.vip:~/clipboard/ \ No newline at end of file +scp -P4422 target/temp-clipboard-1.0-SNAPSHOT-executable.jar jimlee@2ha.me:~/services/clipboard/ \ No newline at end of file