fix coinbase
This commit is contained in:
parent
b2b4ae2618
commit
91826d9d59
1 changed files with 3 additions and 3 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('coinbaseController',
|
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;
|
window.ignoreMobilePause = true;
|
||||||
|
|
||||||
this.openAuthenticateWindow = function() {
|
this.openAuthenticateWindow = function() {
|
||||||
var oauthUrl = this.getAuthenticateUrl();
|
var oauthUrl = this.getAuthenticateUrl();
|
||||||
if (!nodeWebkit.isDefined()) {
|
if (!isNW) {
|
||||||
$rootScope.openExternalLink(oauthUrl, '_system');
|
$rootScope.openExternalLink(oauthUrl, '_system');
|
||||||
} else {
|
} else {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue