]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8043: [verto_communicator] Remove unnecessary calls to localStorage.
authorJoão Mesquita <jmesquita@indicium.com.ar>
Fri, 28 Aug 2015 03:12:47 +0000 (00:12 -0300)
committerJoão Mesquita <jmesquita@indicium.com.ar>
Fri, 28 Aug 2015 03:12:47 +0000 (00:12 -0300)
html5/verto/verto_communicator/src/storageService/services/storage.js
html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js

index 04e8b1709dfd06051ad3885062ff68655430f046..f2f7def4f52a2dda777103522004e9fa1b9d68af 100644 (file)
@@ -38,7 +38,7 @@
     });
 
     function changeData(verto_data) {
-      angular.extend(data, verto_data);
+      jQuery.extend(true, data, verto_data);
     }
 
     return {
index 730448b79b08f70eb3ecab1a450bb4bc3a7f3267..7834be906f09de64cbd0bba4058949f8d5c3db14 100644 (file)
@@ -68,7 +68,6 @@
               storage.data.password = verto.data.password;
 
               console.debug('Redirecting to dialpad page.');
-              storage.changeData(verto);
               toastr.success('Login successful.', 'Welcome');
               $location.path('/dialpad');
             } else {
             title: 'Oops, Active Call in Course.',
             message: 'It seems you were in a call before leaving the last time. Wanna go back to that?'
           }).then(function() {
-            verto.changeData(storage);
             console.log('redirect to incall page');
             $location.path('/incall');
           }, function() {