🆗 修复不能同步图片的bug
This commit is contained in:
parent
0948b1eeb7
commit
cac34390c7
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@
|
||||
hs_err_pid*
|
||||
replay_pid*
|
||||
|
||||
.idea
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user