v_decadence Posted April 28, 2014 Report Share Posted April 28, 2014 I added all dependencies to my page, but when I try add torrent (with example from docs) I get error. Code: var btapp = new Btapp();btapp.connect(); // ok so far var url = 'http://vodo.net/media/torrents/Deadside.Pilot.2012.720p.x264-VODO.torrent';btapp.get('add').torrent(url); // Uncaught TypeError: Cannot read property 'torrent' of undefined Looks like .get method returns undefined by some reason. How can I resolve it?I also tried different .torrent files with no luck. Link to comment Share on other sites More sharing options...
joaomlneto Posted April 30, 2014 Report Share Posted April 30, 2014 I think you should do it the following way btapp.on('add:add', function(add) { add.torrent(url);}); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.