From 91826d9d595a5c0ec1f1d850450529d1e8ecaa83 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 1 Jun 2016 16:46:01 -0300 Subject: [PATCH] fix coinbase --- src/js/controllers/coinbase.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/controllers/coinbase.js b/src/js/controllers/coinbase.js index c223da676..4af218f8a 100644 --- a/src/js/controllers/coinbase.js +++ b/src/js/controllers/coinbase.js @@ -1,14 +1,14 @@ 'use strict'; angular.module('copayApp.controllers').controller('coinbaseController', - function($rootScope, $scope, $timeout, $modal, profileService, configService, storageService, coinbaseService, animationService, lodash, nodeWebkit) { + function($rootScope, $scope, $timeout, $modal, profileService, configService, storageService, coinbaseService, animationService, lodash, platformInfo) { - var isChromeApp = platformInfo.isChromeApp; + var isNW = platformInfo.isNW; window.ignoreMobilePause = true; this.openAuthenticateWindow = function() { var oauthUrl = this.getAuthenticateUrl(); - if (!nodeWebkit.isDefined()) { + if (!isNW) { $rootScope.openExternalLink(oauthUrl, '_system'); } else { var self = this;