FS-8043: [verto_communicator] Remove unnecessary calls to localStorage.

This commit is contained in:
João Mesquita 2015-08-28 00:12:47 -03:00
parent 5de2f7d7bd
commit 8b00fe8dc8
2 changed files with 1 additions and 3 deletions

View File

@ -38,7 +38,7 @@
});
function changeData(verto_data) {
angular.extend(data, verto_data);
jQuery.extend(true, data, verto_data);
}
return {

View 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 {
@ -269,7 +268,6 @@
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() {