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) {
case 'prod':
case 'production':
bws = 'https://bws.bitcoin.com/bws/api'
bws = ($scope.wallet.coin === 'btc') ? defaults.bws.url : defaults.bwscash.url;
break;
case 'sta':
case 'staging':
bws = 'https://bws-staging.b-pay.net/bws/api'
bws = 'https://bws-staging.b-pay.net/bws/api';
break;
case 'loc':
case 'local':
bws = 'http://localhost:3232/bws/api'
bws = 'http://localhost:3232/bws/api';
break;
};
if (bws) {