video logout handling
This commit is contained in:
parent
274e39e2cd
commit
c89f9528c8
2 changed files with 22 additions and 4 deletions
|
|
@ -17,6 +17,8 @@ angular.module('copay.controllerUtils')
|
|||
$rootScope.wallet = null;
|
||||
delete $rootScope['wallet'];
|
||||
$rootScope.totalBalance = 0;
|
||||
video.close();
|
||||
$rootScope.videoSrc = {};
|
||||
$location.path('signin');
|
||||
};
|
||||
|
||||
|
|
@ -38,6 +40,7 @@ angular.module('copay.controllerUtils')
|
|||
root.startNetwork = function(w) {
|
||||
var handlePeerVideo = function(err, peerID, url) {
|
||||
if (err) {
|
||||
delete $rootScope.videoSrc[peerID];
|
||||
return;
|
||||
}
|
||||
$rootScope.videoSrc[peerID] = encodeURI(url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue