feat(drop): support torrents folder drag and drop with recursive scan torrents files

This commit is contained in:
Alexey Kasyanchuk
2018-08-11 04:35:45 +03:00
parent ae7b6fe793
commit 82e77640d6
3 changed files with 49 additions and 6 deletions

View File

@ -151,7 +151,7 @@ class App extends Component {
if(!files || files.length == 0)
return
torrentSocket.emit('dropTorrents', Array.from(files).filter(file => file.type == 'application/x-bittorrent').map(file => file.path))
torrentSocket.emit('dropTorrents', Array.from(files).filter(file => (file.type == 'application/x-bittorrent' || file.type == '')).map(file => file.path))
}
document.addEventListener('dragover', (event) => {