mirror of https://github.com/BTCPrivate/copay.git
Fix showErrorPopup
This commit is contained in:
parent
ca7ec8e392
commit
015e7a788e
|
@ -787,12 +787,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.showAlert = {
|
self.showAlert = {
|
||||||
msg: msg,
|
msg: msg,
|
||||||
close: function(err) {
|
close: function(err) {
|
||||||
if (self.isCordova && navigator && navigator.app) {
|
self.showAlert = null;
|
||||||
navigator.app.exitApp();
|
if (cb) return cb(err);
|
||||||
} else {
|
|
||||||
self.showAlert = null;
|
|
||||||
if (cb) return cb(err);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
@ -1054,7 +1050,11 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('Local/DeviceError', function(event, err) {
|
$rootScope.$on('Local/DeviceError', function(event, err) {
|
||||||
self.showErrorPopup(err);
|
self.showErrorPopup(err, function() {
|
||||||
|
if (self.isCordova && navigator && navigator.app) {
|
||||||
|
navigator.app.exitApp();
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('Local/WalletImported', function(event, walletId) {
|
$rootScope.$on('Local/WalletImported', function(event, walletId) {
|
||||||
|
|
Loading…
Reference in New Issue