From df6fd7b4740a7e7be720c0b0a779089fd98ba4f2 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 30 Jun 2014 11:53:20 -0300 Subject: [PATCH] config --- config.js | 4 ++-- js/controllers/header.js | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config.js b/config.js index d67c0206f..d2ac2e75d 100644 --- a/config.js +++ b/config.js @@ -94,6 +94,7 @@ var defaultConfig = { totalCopayers: 3, spendUnconfirmed: true, verbose: 1, + // will duplicate itself after each try reconnectDelay: 5000, }, @@ -109,8 +110,7 @@ var defaultConfig = { schema: 'https', host: 'insight.bitpay.com', port: 443, - // will duplicate itself after each try - reconnectDelay: 500, + reconnectDelay: 1000, }, // local encryption/security config diff --git a/js/controllers/header.js b/js/controllers/header.js index 803c3cec6..0890ad624 100644 --- a/js/controllers/header.js +++ b/js/controllers/header.js @@ -30,7 +30,7 @@ angular.module('copayApp.controllers').controller('HeaderController', }; var latestVersion = data[0].name.replace('v', '').split('.').map(toInt); var currentVersion = copay.version.split('.').map(toInt); - var title = 'Copay '+data[0].name+' available.'; + var title = 'Copay ' + data[0].name + ' available.'; var content; if (currentVersion[0] < latestVersion[0]) { content = 'It\'s important that you update your wallet at https://copay.io'; @@ -49,11 +49,12 @@ angular.module('copayApp.controllers').controller('HeaderController', $rootScope.$watch('insightError', function(status) { - if (status === -1) { - notification.success('Networking restored', 'Connection to Insight re-established'); - //$rootScope.insightError = 0; - } else if (status !== 0) { - notification.error('Networking problem', 'Connection to Insight lost, reconnecting (attempt number '+status+')'); + if (status) { + if (status === -1) { + notification.success('Networking restored', 'Connection to Insight re-established'); + } else if (!isNaN(status)) { + notification.error('Networking problem', 'Connection to Insight lost, reconnecting (attempt number ' + status + ')'); + } } });