From 6e1af4543c131a08588ce78f3e9e6245ae6b3d1b Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 16 Feb 2016 17:47:00 -0800 Subject: [PATCH] fixes for electron --- client/index.js | 15 +++------------ index.html | 4 +++- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/client/index.js b/client/index.js index e709ffe4..3b304042 100644 --- a/client/index.js +++ b/client/index.js @@ -13,18 +13,9 @@ var util = require('./util') global.WEBTORRENT_ANNOUNCE = [ 'wss://tracker.webtorrent.io', 'wss://tracker.btorrent.xyz' ] var getClient = thunky(function (cb) { - getRtcConfig('/rtcConfig', function (err, rtcConfig) { - if (err && window.location.hostname === 'instant.io') { - if (err) util.error(err) - createClient(rtcConfig) - } else if (err) { - getRtcConfig('https://instant.io/rtcConfig', function (err, rtcConfig) { - if (err) util.error(err) - createClient(rtcConfig) - }) - } else { - createClient(rtcConfig) - } + getRtcConfig('https://instant.io/rtcConfig', function (err, rtcConfig) { + if (err) util.error(err) + createClient(rtcConfig) }) function createClient (rtcConfig) { diff --git a/index.html b/index.html index 60d1a0e4..e44ff831 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,8 @@ - +