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:
ssotomayor 2014-10-01 15:34:24 -03:00
commit ce378ef09e
2 changed files with 4 additions and 2 deletions

View file

@ -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);
}