diff --git a/config.js b/config.js index f65af3ff4..14d03b91a 100644 --- a/config.js +++ b/config.js @@ -28,8 +28,11 @@ var defaultConfig = { key: 'satoshirocks', host: '162.242.219.26', port: 10000, - path: '/', secure: false, + // host: 'copay.io', + // port: 9000, + // secure: true, + path: '/', // other PeerJS config maxPeers: 15, @@ -118,6 +121,6 @@ var defaultConfig = { // theme list themes: ['default'], - disableVideo: 1, + disableVideo: true, verbose: 1, }; diff --git a/index.html b/index.html index 4c460e1ca..aac32ede5 100644 --- a/index.html +++ b/index.html @@ -820,7 +820,7 @@
Bitcoin Network - +
@@ -832,7 +832,7 @@
Videoconferencing - +
Insight API server @@ -840,7 +840,7 @@ - +
@@ -852,8 +852,8 @@ - - + +
diff --git a/js/controllers/settings.js b/js/controllers/settings.js index 4011ab768..b38252d5d 100644 --- a/js/controllers/settings.js +++ b/js/controllers/settings.js @@ -3,7 +3,6 @@ angular.module('copayApp.controllers').controller('SettingsController', function($scope, $rootScope, $window, $location) { $scope.title = 'Settings'; - $scope.networkName = config.networkName; $scope.insightHost = config.blockchain.host; $scope.insightPort = config.blockchain.port; @@ -12,7 +11,7 @@ angular.module('copayApp.controllers').controller('SettingsController', $scope.networkHost = config.network.host; $scope.networkPort = config.network.port; $scope.networkSecure = config.network.secure || false; - $scope.disableVideo = config.disableVideo || true; + $scope.disableVideo = typeof config.disableVideo === undefined ? true : config.disableVideo; $scope.unitOpts = [{ name: 'Satoshis (100,000,000 satoshis = 1BTC)', @@ -39,14 +38,14 @@ angular.module('copayApp.controllers').controller('SettingsController', } } - $scope.$watch('networkName', function(net) { - $scope.insightHost = net === 'testnet' ? 'test-insight.bitpay.com' : 'insight.bitpay.com'; - }); + $scope.changeNetwork = function() { + $scope.insightHost = $scope.networkName !== 'testnet' ? 'test-insight.bitpay.com' : 'insight.bitpay.com'; + }; - $scope.$watch('insightSecure', function(ssl) { - $scope.insightPort = ssl ? 443 : 80; - }); + $scope.changeInsightSSL = function() { + $scope.insightPort = $scope.insightSecure ? 80 : 443; + }; $scope.save = function() { diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index c823a2843..a993bd635 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -44,8 +44,7 @@ angular.module('copayApp.services') root.installStartupHandlers = function(wallet, $scope) { wallet.on('serverError', function(msg) { - notification.error('PeerJS Error', 'There was an error connecting to the PeerJS server.' - + (msg || 'Check you settings and Internet connection.')); + notification.error('PeerJS Error', 'There was an error connecting to the PeerJS server.' + (msg || 'Check you settings and Internet connection.')); root.onErrorDigest($scope); $location.path('addresses'); });