fix(scanner): avoid pre-initializing scanner on desktop
This commit is contained in:
parent
dafd46c3a2
commit
e5a89293c0
2 changed files with 13 additions and 11 deletions
|
|
@ -57,8 +57,10 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
|||
|
||||
$scope.$on("$ionicView.afterEnter", function() {
|
||||
// try initializing and refreshing status any time the view is entered
|
||||
scannerService.gentleInitialize();
|
||||
scannerService.resumePreview();
|
||||
if(!scannerService.isInitialized()){
|
||||
scannerService.gentleInitialize();
|
||||
}
|
||||
activate();
|
||||
});
|
||||
|
||||
function activate(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue