Skip to content
Snippets Groups Projects
Commit 36e75cd3 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Server vs client side is making this a lot harder than it has to be.

parent 2ca86a16
No related branches found
No related tags found
2 merge requests!2Fail Over Capability,!1Automatic Fail Over
......@@ -199,8 +199,12 @@ class Steem extends EventEmitter {
{
config.set('alternative_api_endpoints', options.alternative_api_endpoints);
}
if (options.hasOwnProperty('url') && this.options.alternative_api_endpoints !== 'undefined')
if (options.hasOwnProperty('url'))
{
if (this.options.alternative_api_endpoints === undefined || this.options.alternative_api_endpoints === null)
{
console.log("no alternative api endpoints found, can't update the index");
}
let index = 0;
for (var i = 0; i < this.options.alternative_api_endpoints.length; i++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment