mirror of https://github.com/BTCPrivate/copay.git
fix settings autocomplete
This commit is contained in:
parent
03662d9017
commit
7e70541487
|
@ -40,12 +40,14 @@ angular.module('copayApp.controllers').controller('SettingsController',
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.$watch('networkName', function(net) {
|
$scope.$watch('networkName', function(net) {
|
||||||
$scope.insightHost = net === 'testnet' ? 'test-insight.bitpay.com' : 'insight.bitpay.com';
|
if (net !== config.networkName)
|
||||||
|
$scope.insightHost = net === 'testnet' ? 'test-insight.bitpay.com' : 'insight.bitpay.com';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$scope.$watch('insightSecure', function(ssl) {
|
var l2 = $scope.$watch('insightSecure', function(ssl) {
|
||||||
$scope.insightPort = ssl ? 443 : 80;
|
if (ssl !== config.insightSecure)
|
||||||
|
$scope.insightPort = ssl ? 443 : 80;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue