fix(secubox-p2p): Fix discoverPeers API method name
Changed P2PAPI.discoverPeers() to P2PAPI.discover() to match the actual method exposed by the API module. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
aa13009f54
commit
e52fdfc299
@ -246,7 +246,7 @@ return view.extend({
|
||||
scanPeers: function() {
|
||||
var self = this;
|
||||
ui.showModal(_('Scanning...'), E('p', { 'class': 'spinning' }, _('Discovering peers...')));
|
||||
P2PAPI.discoverPeers().then(function(result) {
|
||||
P2PAPI.discover().then(function(result) {
|
||||
ui.hideModal();
|
||||
var count = (result && result.length) || 0;
|
||||
ui.addNotification(null, E('p', {}, 'Found ' + count + ' peer(s)'), 'info');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user