From 4fe9fb08dc13bd300da856489b8d6fb3b5da1ec3 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 18 Jul 2015 16:37:24 +0200 Subject: [PATCH] Remove obsolete tests for screen sharing --- public/js/vroom.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 4d11234..5aa2b91 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -1969,19 +1969,8 @@ function initVroom(room) { webrtc.shareScreen(function(err){ // An error occured while sharing our screen if(err){ - if (err.name === 'EXTENSION_UNAVAILABLE'){ - // 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'); - } - else{ - // TODO: update this message as screen sharing now works on FF too - cantShare(localize('SCREEN_SHARING_ONLY_FOR_CHROME')); - } + if (err.name === 'EXTENSION_UNAVAILABLE' && $.browser.webkit){ + $('#chromeExtMessage').modal('show'); } // This error usually means you have denied access (old flag way) // or you cancelled screen sharing (new extension way)