From: netoguimaraes Date: Wed, 2 Jan 2019 20:36:03 +0000 (-0300) Subject: FS-11589 [verto_communicator]: removing es6 use to support old browsers syntax X-Git-Tag: v1.8.5~1^2~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7c6a8afa0d8c0e4dc47828c2d02ff166b20d4a;p=thirdparty%2Ffreeswitch.git FS-11589 [verto_communicator]: removing es6 use to support old browsers syntax --- 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;