handle pasting a line that ends in /n better
This commit is contained in:
parent
c1cf9199b2
commit
161d0297ec
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
|
@ -150,6 +150,8 @@ var template = [
|
|||
click: function () {
|
||||
var torrentIds = electron.clipboard.readText().split('\n')
|
||||
torrentIds.forEach(function (torrentId) {
|
||||
torrentId = torrentId.trim()
|
||||
if (torrentId.length === 0) return
|
||||
mainWindow.send('action', 'addTorrent', torrentId)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue