Skip to content

Commit

Permalink
Load real MN info from current masternode
Browse files Browse the repository at this point in the history
  • Loading branch information
AltcoinBaggins committed Mar 22, 2024
1 parent f3b6094 commit cf18dda
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

// Either connect to API of current host where dashboard is running,
// or fetch random MN information when developing on localhost
if (document.location.host == 'localhost' || document.location.host.indexOf('.github.io')) {
var URL = $.getJSON('https://explorer.veles.network/dapi/status');
} else {
//if (document.location.host == 'localhost' || document.location.host.indexOf('.github.io')) {
// var URL = $.getJSON('https://explorer.veles.network/dapi/status');
//} else {
var URL = $.getJSON(
document.location.protocol + '://' + document.location.host + '/api/status'
/*document.location.protocol + */'https://' + document.location.host + '/api/status'
);
}
//}

function SleepTillUpdateValues(time) {
return new Promise((resolve) => setInterval(resolve, time));
Expand Down Expand Up @@ -258,4 +258,4 @@
});


})(jQuery);
})(jQuery);

0 comments on commit cf18dda

Please sign in to comment.