Also fixed for aliases 'prod' and 'production'

This commit is contained in:
Sebastiaan Pasma 2018-05-22 09:54:56 +02:00
commit 6eaf243e6e

View file

@ -25,15 +25,15 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
switch ($scope.bwsurl.value) { switch ($scope.bwsurl.value) {
case 'prod': case 'prod':
case 'production': case 'production':
bws = 'https://bws.bitcoin.com/bws/api' bws = ($scope.wallet.coin === 'btc') ? defaults.bws.url : defaults.bwscash.url;
break; break;
case 'sta': case 'sta':
case 'staging': case 'staging':
bws = 'https://bws-staging.b-pay.net/bws/api' bws = 'https://bws-staging.b-pay.net/bws/api';
break; break;
case 'loc': case 'loc':
case 'local': case 'local':
bws = 'http://localhost:3232/bws/api' bws = 'http://localhost:3232/bws/api';
break; break;
}; };
if (bws) { if (bws) {