commit
923cd8d65b
1 changed files with 3 additions and 9 deletions
|
|
@ -38,15 +38,9 @@ angular.module('copayApp.services')
|
||||||
delete $rootScope['wallet'];
|
delete $rootScope['wallet'];
|
||||||
delete $rootScope['iden'];
|
delete $rootScope['iden'];
|
||||||
|
|
||||||
// Clear rootScope
|
// Go home reloading the application
|
||||||
for (var i in $rootScope) {
|
var hashIndex = window.location.href.indexOf('#!/');
|
||||||
if (i.charAt(0) != '$') {
|
window.location = window.location.href.substr(0, hashIndex);
|
||||||
delete $rootScope[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$location.path('/');
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue