Hides backup button on mobile devices since the mobile browsers are not supporting downloading files, as they don't have access to the FS of the device.
This commit is contained in:
parent
6dcc161bf9
commit
ce378ef09e
2 changed files with 4 additions and 2 deletions
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('MoreController',
|
||||
function($scope, $rootScope, $location, $filter, backupService, walletFactory, controllerUtils, notification, rateService) {
|
||||
function($scope, $rootScope, $location, $filter, backupService, walletFactory, controllerUtils, notification, rateService, isMobile) {
|
||||
var w = $rootScope.wallet;
|
||||
$scope.isMobile = isMobile.any();
|
||||
|
||||
$scope.unitOpts = [{
|
||||
name: 'Satoshis (100,000,000 satoshis = 1BTC)',
|
||||
|
|
@ -68,6 +69,7 @@ angular.module('copayApp.controllers').controller('MoreController',
|
|||
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
|
||||
|
||||
$scope.downloadBackup = function() {
|
||||
console.log(window.mobilecheck());
|
||||
backupService.download(w);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue