mirror of https://github.com/BTCPrivate/copay.git
handle notauthorized
This commit is contained in:
parent
461b73f63e
commit
ff8560208b
|
@ -421,7 +421,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('Local/ClientError', function(event, err) {
|
$rootScope.$on('Local/ClientError', function(event, err) {
|
||||||
self.clientError = err;
|
if (err.code && err.code === 'NOTAUTHORIZED') {
|
||||||
|
// Show not error, just redirect to home (where the recreate option is shown)
|
||||||
|
go.walletHome();
|
||||||
|
} else {
|
||||||
|
self.clientError = err;
|
||||||
|
}
|
||||||
$rootScope.$apply();
|
$rootScope.$apply();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ if (window && window.navigator) {
|
||||||
angular
|
angular
|
||||||
.module('copayApp')
|
.module('copayApp')
|
||||||
.config(function(bwcServiceProvider, $stateProvider, $urlRouterProvider) {
|
.config(function(bwcServiceProvider, $stateProvider, $urlRouterProvider) {
|
||||||
bwcServiceProvider.setBaseUrl('http://192.168.1.102:3001/bws/api');
|
|
||||||
$urlRouterProvider.otherwise('/');
|
$urlRouterProvider.otherwise('/');
|
||||||
|
|
||||||
$stateProvider
|
$stateProvider
|
||||||
|
|
Loading…
Reference in New Issue