Skip to content

Commit

Permalink
Merge pull request #317 from matrix-org/dbkr/move_screen_sharing_error
Browse files Browse the repository at this point in the history
Move screen sharing check/error
  • Loading branch information
dbkr committed Jan 11, 2017
2 parents 1813173 + 4dc331d commit 94d79ed
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/webrtc/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 94d79ed

Please sign in to comment.