Remove obsolete tests for screen sharing

master
Daniel Berteaud 9 years ago
parent 477070baab
commit 4fe9fb08dc
  1. 13
      public/js/vroom.js

@ -1969,20 +1969,9 @@ function initVroom(room) {
webrtc.shareScreen(function(err){ webrtc.shareScreen(function(err){
// An error occured while sharing our screen // An error occured while sharing our screen
if(err){ if(err){
if (err.name === 'EXTENSION_UNAVAILABLE'){ if (err.name === 'EXTENSION_UNAVAILABLE' && $.browser.webkit){
// TODO: remove this test, v 34 or 35 are old now
var ver = 34;
if ($.browser.linux){
ver = 35;
}
if ($.browser.webkit && $.browser.versionNumber >= ver){
$('#chromeExtMessage').modal('show'); $('#chromeExtMessage').modal('show');
} }
else{
// TODO: update this message as screen sharing now works on FF too
cantShare(localize('SCREEN_SHARING_ONLY_FOR_CHROME'));
}
}
// This error usually means you have denied access (old flag way) // This error usually means you have denied access (old flag way)
// or you cancelled screen sharing (new extension way) // or you cancelled screen sharing (new extension way)
// or you select no window (in Firefox) // or you select no window (in Firefox)

Loading…
Cancel
Save