474 - Fix os in the link
This commit is contained in:
parent
63c64bce0e
commit
415b79c12e
1 changed files with 8 additions and 7 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
angular.module('copayApp.services').factory('bitcoincomService', function($http, $log, lodash, moment, storageService, configService, platformInfo, nextStepsService, homeIntegrationsService) {
|
angular.module('copayApp.services').factory('bitcoincomService', function(platformInfo, nextStepsService) {
|
||||||
var root = {};
|
var root = {};
|
||||||
var credentials = {};
|
var credentials = {};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Development: 'testnet'
|
* Development: 'testnet'
|
||||||
* Production: 'livenet'
|
* Production: 'livenet'
|
||||||
*/
|
*/
|
||||||
|
var os = platformInfo.isAndroid ? 'android' : platformInfo.isIOS ? 'ios' : 'desktop';
|
||||||
credentials.NETWORK = 'livenet';
|
credentials.NETWORK = 'livenet';
|
||||||
//credentials.NETWORK = 'testnet';
|
//credentials.NETWORK = 'testnet';
|
||||||
|
|
||||||
|
|
@ -20,28 +21,28 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
|
||||||
name: 'games',
|
name: 'games',
|
||||||
title: 'Bitcoin Cash Games',
|
title: 'Bitcoin Cash Games',
|
||||||
icon: 'icon-games',
|
icon: 'icon-games',
|
||||||
href: 'https://cashgames.bitcoin.com/?utm_source=WalletApp&utm_medium=iOS&utm_campaign=CashGames'
|
href: 'https://cashgames.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=CashGames'
|
||||||
};
|
};
|
||||||
|
|
||||||
var newsItem = {
|
var newsItem = {
|
||||||
name: 'news',
|
name: 'news',
|
||||||
title: 'News',
|
title: 'News',
|
||||||
icon: 'icon-news',
|
icon: 'icon-news',
|
||||||
href: 'https://news.bitcoin.com/?utm_source=WalletApp&utm_medium=iOS&utm_campaign=News'
|
href: 'https://news.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=News'
|
||||||
};
|
};
|
||||||
|
|
||||||
var poolItem = {
|
var poolItem = {
|
||||||
name: 'pool',
|
name: 'pool',
|
||||||
title: 'Mining Pool',
|
title: 'Mining Pool',
|
||||||
icon: 'icon-mining',
|
icon: 'icon-mining',
|
||||||
href: 'https://pool.bitcoin.com/?utm_source=WalletApp&utm_medium=iOS&utm_campaign=Pool'
|
href: 'https://pool.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=Pool'
|
||||||
};
|
};
|
||||||
|
|
||||||
var toolsItem = {
|
var toolsItem = {
|
||||||
name: 'tools',
|
name: 'tools',
|
||||||
title: 'Tools',
|
title: 'Tools',
|
||||||
icon: 'icon-tools',
|
icon: 'icon-tools',
|
||||||
href: 'https://tools.bitcoin.com/?utm_source=WalletApp&utm_medium=iOS&utm_campaign=Tools'
|
href: 'https://tools.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=Tools'
|
||||||
};
|
};
|
||||||
|
|
||||||
var priceChartItem = {
|
var priceChartItem = {
|
||||||
|
|
@ -55,7 +56,7 @@ angular.module('copayApp.services').factory('bitcoincomService', function($http,
|
||||||
name: 'faucet',
|
name: 'faucet',
|
||||||
title: 'Free Bitcoin Cash',
|
title: 'Free Bitcoin Cash',
|
||||||
icon: 'icon-faucet',
|
icon: 'icon-faucet',
|
||||||
href: 'https://free.bitcoin.com/?utm_source=WalletApp&utm_medium=iOS&utm_campaign=Faucet'
|
href: 'https://free.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os + '&utm_campaign=Faucet'
|
||||||
};
|
};
|
||||||
|
|
||||||
var _getBitPay = function(endpoint) {
|
var _getBitPay = function(endpoint) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue