Fix lines starting with space getting inserted twice
This commit is contained in:
parent
f33e5642c5
commit
dea8c293aa
|
|
@ -65,7 +65,7 @@ function checkClipboard() {
|
||||||
pasteTarget.focus()
|
pasteTarget.focus()
|
||||||
document.execCommand("paste")
|
document.execCommand("paste")
|
||||||
const content = pasteTarget.textContent
|
const content = pasteTarget.textContent
|
||||||
if(content != previousContent && content != "") {
|
if(content.trim() !== previousContent.trim() && content != "") {
|
||||||
listeningTabs.forEach(id => notifyForeground(id, content))
|
listeningTabs.forEach(id => notifyForeground(id, content))
|
||||||
previousContent = content
|
previousContent = content
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue