Fix undefined variable on device
This commit is contained in:
parent
89b0fca5cb
commit
1032aa202f
1 changed files with 8 additions and 2 deletions
|
|
@ -95,7 +95,10 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
|||
$timeout(function() {
|
||||
var data = isIOS ? result : result.text;
|
||||
// Check if the current page is tabs.scan
|
||||
if (go.is('tabs.scan')) _dataScanned(data);
|
||||
if (go.is('tabs.scan')) {
|
||||
_dataScanned(data);
|
||||
return;
|
||||
}
|
||||
$scope.onScan({
|
||||
data: data
|
||||
});
|
||||
|
|
@ -187,7 +190,10 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
|||
}
|
||||
// Check if the current page is tabs.scan
|
||||
_scanStop();
|
||||
if (go.is('tabs.scan')) _dataScanned(data);
|
||||
if (go.is('tabs.scan')) {
|
||||
_dataScanned(data);
|
||||
return;
|
||||
}
|
||||
$scope.cancel();
|
||||
$scope.onScan({
|
||||
data: data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue