🆗 修复不能同步图片的bug
This commit is contained in:
parent
0948b1eeb7
commit
cac34390c7
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@
|
|||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
replay_pid*
|
replay_pid*
|
||||||
|
|
||||||
|
.idea
|
@ -240,6 +240,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function saveValue() {
|
function saveValue() {
|
||||||
|
if (textarea.innerHTML === "") {
|
||||||
|
return
|
||||||
|
}
|
||||||
let href = ""
|
let href = ""
|
||||||
for (element of textarea.childNodes) {
|
for (element of textarea.childNodes) {
|
||||||
if (href === "" && element.href !== undefined && element.href !== "") {
|
if (href === "" && element.href !== undefined && element.href !== "") {
|
||||||
@ -251,7 +254,7 @@
|
|||||||
if (href !== "") {
|
if (href !== "") {
|
||||||
nowValue = href;
|
nowValue = href;
|
||||||
} else {
|
} else {
|
||||||
nowValue = textarea.innerText
|
nowValue = textarea.innerText === "" ? textarea.innerHTML : textarea.innerText
|
||||||
}
|
}
|
||||||
if (lastValue !== nowValue && lastUpdate != null && Date.now() - lastUpdate > 3000) {
|
if (lastValue !== nowValue && lastUpdate != null && Date.now() - lastUpdate > 3000) {
|
||||||
lastValue = nowValue
|
lastValue = nowValue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user