From 4dc331d629a062f4cd03058e4a5e6af973ba056e Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 10 Jan 2017 18:36:54 +0000 Subject: [PATCH] Move screen sharing check/error Because the https check only applies in the browser --- lib/webrtc/call.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/webrtc/call.js b/lib/webrtc/call.js index eade977e112..ab8a1d13d92 100644 --- a/lib/webrtc/call.js +++ b/lib/webrtc/call.js @@ -1141,14 +1141,6 @@ var _getChromeScreenSharingConstraints = function(call) { )); return; } - // it won't work at all if you're not on HTTPS so whine whine whine - if (!global.window || global.window.location.protocol !== "https:") { - call.emit("error", callError( - MatrixCall.ERR_NO_USER_MEDIA, - "You need to be using HTTPS to place a screen-sharing call." - )); - return; - } return { video: {