From 9f3311978d0b87f5da9e381f9416d553dc5b4ad8 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 2 Feb 2019 08:13:06 +0100 Subject: [PATCH] Block calls for browsers that does not support it. --- assets/js/components/calls/controller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/components/calls/controller.js b/assets/js/components/calls/controller.js index 8ac9477a..61fb8b8b 100644 --- a/assets/js/components/calls/controller.js +++ b/assets/js/components/calls/controller.js @@ -103,6 +103,10 @@ ComunicWeb.components.calls.controller = { */ isAvailable: function(){ + //First, check if this browser support webrtc + if(!SimplePeer.WEBRTC_SUPPORT) + return false; + //If do not have any call configuration, it is not possible to //make calls if(this.getConfig() == null)