From e94c4238d1eb2787ccf155c419784f014e2c64fa Mon Sep 17 00:00:00 2001 From: paweldomas Date: Tue, 26 Aug 2014 13:02:17 +0200 Subject: [PATCH] Fixes crash on non HTTPS sites. --- app.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 2e63fda0c0..4acd51a54b 100644 --- a/app.js +++ b/app.js @@ -144,16 +144,10 @@ function connect(jid, password) { } /** - * HTTPS only: - * We first ask for audio and video combined stream in order to get permissions and not to ask twice. - * Then we dispose the stream and continue with separate audio, video streams(required for desktop sharing). + * We ask for audio and video combined stream in order to get permissions and + * not to ask twice. */ function obtainAudioAndVideoPermissions(callback) { - // This makes sense only on https sites otherwise we'll be asked for permissions every time - if (location.protocol !== 'https:') { - callback(); - return; - } // Get AV getUserMediaWithConstraints( ['audio', 'video'],