fix bitcoind message problem
This commit is contained in:
parent
a358eb4f92
commit
ec62e77c80
@ -52,6 +52,8 @@ exports.sync = function(req, res) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.peer = function(req, res) {
|
exports.peer = function(req, res) {
|
||||||
if (req.peerSync)
|
if (req.peerSync) {
|
||||||
res.jsonp(req.peerSync.info());
|
var info = req.peerSync.info();
|
||||||
|
res.jsonp(info);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -13,5 +13,5 @@ angular.module('insight.status')
|
|||||||
})
|
})
|
||||||
.factory('PeerSync',
|
.factory('PeerSync',
|
||||||
function($resource) {
|
function($resource) {
|
||||||
return $resource('api/peer');
|
return $resource('/api/peer');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<!-- apiOnline disabled || !apiOnline -->
|
<!-- apiOnline disabled || !apiOnline -->
|
||||||
<div class="alert alert-danger" data-ng-show="!serverOnline || !clienteOnline", data-ng-init="getConnStatus()">
|
<div class="alert alert-danger" data-ng-show="!serverOnline || !clienteOnline", data-ng-init="getConnStatus()">
|
||||||
<strong>Error!</strong>
|
<strong>Error!</strong>
|
||||||
<!-- <p data-ng-show="!apiOnline">Can't connect to bitcoind.</p> -->
|
<p data-ng-show="!apiOnline">Can't connect to bitcoind.</p>
|
||||||
<p data-ng-show="!serverOnline">Can't connect to server.</p>
|
<p data-ng-show="!serverOnline">Can't connect to server.</p>
|
||||||
<p data-ng-show="!clienteOnline">Can't connect to internet. Please, check your connection.</p>
|
<p data-ng-show="!clienteOnline">Can't connect to internet. Please, check your connection.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user