not available for mobile
This commit is contained in:
parent
091ae73e2d
commit
11865c25ef
2 changed files with 9 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('scannerController', function($scope, $timeout, storageService, $ionicModal) {
|
||||
angular.module('copayApp.controllers').controller('scannerController', function($scope, $timeout, storageService, $ionicModal, platformInfo) {
|
||||
|
||||
// QR code Scanner
|
||||
var video;
|
||||
|
|
@ -73,6 +73,12 @@ angular.module('copayApp.controllers').controller('scannerController', function(
|
|||
};
|
||||
|
||||
$scope.init = function() {
|
||||
if (platformInfo.isCordova) scannerInit();
|
||||
else checkTips();
|
||||
};
|
||||
|
||||
function checkTips() {
|
||||
//TODO addapt tips to the new QR plugin (mobile)
|
||||
storageService.getScanTipsAccepted(function(err, accepted) {
|
||||
if (err) $log.warn(err);
|
||||
if (accepted) {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
$scope.wallets = profileService.getWallets({
|
||||
onlyComplete: true
|
||||
});
|
||||
$scope.isCordova = platformInfo.isCordova;
|
||||
$scope.isNW = platformInfo.isNW;
|
||||
$scope.checkTips();
|
||||
$scope.isCordova = platformInfo.isCordova;
|
||||
if (!$scope.isCordova) $scope.checkTips();
|
||||
}
|
||||
|
||||
$scope.checkTips = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue