Fix pause for iOS

This commit is contained in:
Gustavo Maximiliano Cortez 2015-01-29 15:22:15 -03:00
commit 71db4d05f9
3 changed files with 10 additions and 4 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('ReceiveController',
function($scope, $rootScope, $timeout, $modal, isCordova) {
function($scope, $rootScope, $timeout, $modal, isCordova, isMobile) {
$scope.newAddr = function() {
var w = $rootScope.wallet;
@ -19,7 +19,9 @@ angular.module('copayApp.controllers').controller('ReceiveController',
$scope.shareAddress = function(addr) {
if (isCordova) {
window.ignoreMobilePause = true;
if (!isMobile.iOS) {
window.ignoreMobilePause = true;
}
window.plugins.socialsharing.share('My bitcoin address: ' + addr, null, null, null);
}
};