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;