checks network match when joining a wallet

This commit is contained in:
Matias Alejo Garcia 2014-06-09 21:00:28 -03:00
commit 4ae3748414
5 changed files with 26 additions and 5 deletions

View file

@ -32,8 +32,12 @@ angular.module('copayApp.services')
root.logout();
}
root.onErrorDigest = function(scope) {
root.onErrorDigest = function(scope, msg) {
root.onError(scope);
if (msg) $rootScope.$flashMessage = {
type: 'error',
message: msg
};
$rootScope.$digest();
}
@ -81,7 +85,7 @@ angular.module('copayApp.services')
});
});
w.on('connectionError', function(msg) {
root.onErrorDigest(msg);
root.onErrorDigest(null, msg);
});
w.on('connect', function(peerID) {
if (peerID && !config.disableVideo) {