🆗 修复不能同步图片的bug

This commit is contained in:
jimlee 2023-03-30 14:19:33 +08:00
parent 0948b1eeb7
commit cac34390c7
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@
hs_err_pid*
replay_pid*
.idea

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