FS-11589 [verto_communicator]: removing es6 use to support old browsers syntax

This commit is contained in:
netoguimaraes 2019-01-02 17:36:03 -03:00
parent ead79413fa
commit fd7c6a8afa
1 changed files with 6 additions and 1 deletions

View File

@ -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;