Fix lines starting with space getting inserted twice

This commit is contained in:
Kamil Tomala 2018-06-03 13:50:06 +02:00
parent f33e5642c5
commit dea8c293aa
1 changed files with 1 additions and 1 deletions

View File

@ -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
}