React: make webtorrent process easier to debug

Add window.client = the WebTorrent client
This commit is contained in:
DC
2016-07-22 22:14:51 -07:00
parent 9df51aec49
commit d21396c618

View File

@@ -28,7 +28,7 @@ global.WEBTORRENT_ANNOUNCE = defaultAnnounceList
// Connect to the WebTorrent and BitTorrent networks. WebTorrent Desktop is a hybrid
// client, as explained here: https://webtorrent.io/faq
var client = new WebTorrent()
var client = window.client = new WebTorrent()
// WebTorrent-to-HTTP streaming sever
var server = null