feat(generate): add generated torrent to search list after generation

This commit is contained in:
Alexey Kasyanchuk
2021-07-10 23:52:54 +03:00
parent 9699f1eb7f
commit b90de1dfc0

View File

@ -69,6 +69,7 @@ class Header extends React.Component {
if(savePath) {
fs.writeFileSync(savePath, torrent)
console.log('saved', torrent.length, 'to', savePath)
torrentSocket.emit('dropTorrents', [{path: savePath}]);
}
}
})