Fix auto-logout after scan a QR
This commit is contained in:
parent
1e071e8215
commit
c187c0fb03
3 changed files with 17 additions and 1 deletions
|
|
@ -285,8 +285,12 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
};
|
||||
|
||||
$scope.scannerIntent = function() {
|
||||
window.usingCamera = true;
|
||||
cordova.plugins.barcodeScanner.scan(
|
||||
function onSuccess(result) {
|
||||
$timeout(function(){
|
||||
window.usingCamera = false;
|
||||
}, 100);
|
||||
if (result.cancelled) return;
|
||||
|
||||
$timeout(function() {
|
||||
|
|
@ -298,6 +302,9 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
}, 1000);
|
||||
},
|
||||
function onError(error) {
|
||||
$timeout(function(){
|
||||
window.usingCamera = false;
|
||||
}, 100);
|
||||
alert('Scanning error');
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue