use different block explorer
This commit is contained in:
parent
6ff6e377d3
commit
f51f3b8074
2 changed files with 7 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
|||
var txId;
|
||||
var listeners = [];
|
||||
var config = configService.getSync();
|
||||
var defaults = configService.getDefaults();
|
||||
var blockexplorerUrl;
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
|
|
@ -16,11 +17,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
|
|||
$scope.isShared = $scope.wallet.credentials.n > 1;
|
||||
$scope.txsUnsubscribedForNotifications = config.confirmedTxsNotifications ? !config.confirmedTxsNotifications.enabled : true;
|
||||
|
||||
if ($scope.wallet.coin == 'bch') {
|
||||
blockexplorerUrl = 'bch-insight.bitpay.com';
|
||||
} else {
|
||||
blockexplorerUrl = 'insight.bitpay.com';
|
||||
}
|
||||
blockexplorerUrl = defaults.blockExplorer[$scope.wallet.coin];
|
||||
|
||||
txConfirmNotification.checkIfEnabled(txId, function(res) {
|
||||
$scope.txNotification = {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,11 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
}
|
||||
},
|
||||
|
||||
blockExplorer: {
|
||||
btc: 'explorer.bitcoin.com/btc',
|
||||
bch: 'explorer.bitcoin.com/bch'
|
||||
},
|
||||
|
||||
rateApp: {
|
||||
bitpay: {
|
||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=1149581638&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue