mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
FS-8043: [verto_communicator] Remove unnecessary calls to localStorage.
This commit is contained in:
parent
5de2f7d7bd
commit
8b00fe8dc8
@ -38,7 +38,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function changeData(verto_data) {
|
function changeData(verto_data) {
|
||||||
angular.extend(data, verto_data);
|
jQuery.extend(true, data, verto_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -68,7 +68,6 @@
|
|||||||
storage.data.password = verto.data.password;
|
storage.data.password = verto.data.password;
|
||||||
|
|
||||||
console.debug('Redirecting to dialpad page.');
|
console.debug('Redirecting to dialpad page.');
|
||||||
storage.changeData(verto);
|
|
||||||
toastr.success('Login successful.', 'Welcome');
|
toastr.success('Login successful.', 'Welcome');
|
||||||
$location.path('/dialpad');
|
$location.path('/dialpad');
|
||||||
} else {
|
} else {
|
||||||
@ -269,7 +268,6 @@
|
|||||||
title: 'Oops, Active Call in Course.',
|
title: 'Oops, Active Call in Course.',
|
||||||
message: 'It seems you were in a call before leaving the last time. Wanna go back to that?'
|
message: 'It seems you were in a call before leaving the last time. Wanna go back to that?'
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
verto.changeData(storage);
|
|
||||||
console.log('redirect to incall page');
|
console.log('redirect to incall page');
|
||||||
$location.path('/incall');
|
$location.path('/incall');
|
||||||
}, function() {
|
}, function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user