fix isWP undefined

This commit is contained in:
Gabriel Bazán 2016-08-29 17:42:19 -03:00
commit edba9b05b1

View file

@ -2,7 +2,9 @@
angular.module('copayApp.controllers').controller('collectEmailController', function($scope, $state, $stateParams, profileService, walletService, platformInfo) {
var usePushNotifications = platformInfo.isCordova && !isWP;
var isCordova = platformInfo.isCordova;
var isWP = platformInfo.isWP;
var usePushNotifications = isCordova && !isWP;
$scope.skip = function() {
if (!usePushNotifications) $state.go('onboarding.backupRequest');