load torrents from state.saved

This commit is contained in:
Feross Aboukhadijeh
2016-03-05 20:16:10 -08:00
parent 1264d325d9
commit 569111d336

View File

@@ -38,6 +38,10 @@ function init () {
state.client.on('warning', onWarning)
state.client.on('error', onError)
state.saved.torrents.forEach(function (torrent) {
state.client.add(torrent.torrentFile)
})
// For easy debugging in Developer Tools
global.state = state