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()
|
||||
document.execCommand("paste")
|
||||
const content = pasteTarget.textContent
|
||||
if(content != previousContent && content != "") {
|
||||
if(content.trim() !== previousContent.trim() && content != "") {
|
||||
listeningTabs.forEach(id => notifyForeground(id, content))
|
||||
previousContent = content
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue