Merge pull request #1647 in FS/freeswitch from ~NETOGUIMARAES/freeswitch:fix/remove_default_value to master

* commit 'fd7c6a8afa0d8c0e4dc47828c2d02ff166b20d4a':
  FS-11589 [verto_communicator]: removing es6 use to support old browsers syntax
This commit is contained in:
Christopher Rienzo 2019-01-02 20:47:53 +00:00
commit 4e4c2711e9
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;