fix(scanner): avoid pre-initializing scanner on desktop

This commit is contained in:
Jason Dreyzehner 2017-01-11 19:43:21 -05:00
commit e5a89293c0
2 changed files with 13 additions and 11 deletions

View file

@ -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(){