|
|
@ -1969,19 +1969,8 @@ 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
|
|
|
|
$('#chromeExtMessage').modal('show'); |
|
|
|
var ver = 34; |
|
|
|
|
|
|
|
if ($.browser.linux){ |
|
|
|
|
|
|
|
ver = 35; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if ($.browser.webkit && $.browser.versionNumber >= ver){ |
|
|
|
|
|
|
|
$('#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)
|
|
|
|