From fd7c6a8afa0d8c0e4dc47828c2d02ff166b20d4a Mon Sep 17 00:00:00 2001 From: netoguimaraes Date: Wed, 2 Jan 2019 17:36:03 -0300 Subject: [PATCH] FS-11589 [verto_communicator]: removing es6 use to support old browsers syntax --- .../src/vertoControllers/controllers/MainController.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js index 5534a6b817..a8bfe106db 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js @@ -77,10 +77,15 @@ * Login the user to verto server and * redirects him to dialpad page. */ - $rootScope.login = function(redirect, skipPreview = false) { + $rootScope.login = function(redirect, skipPreview) { if(redirect == undefined) { redirect = true; } + + if(skipPreview == undefined) { + redirect == false; + } + var connectCallback = function(v, connected) { $scope.$apply(function() { verto.data.connecting = false;