diff --git a/src/client/pages/office/account.js b/src/client/pages/office/account.js index 9f1f6e6..e28206b 100644 --- a/src/client/pages/office/account.js +++ b/src/client/pages/office/account.js @@ -2,7 +2,8 @@ var reputation = require('../../../utils/reputation.js'); const dsteem = require('dsteem'); -const client = new dsteem.Client('https://api.steemit.com'); +const settings = require('../../../../config/settings'); +const client = new dsteem.Client(settings.STEEM_RPC); $( document ).ready(function() { diff --git a/src/client/pages/office/dashboard.js b/src/client/pages/office/dashboard.js index f6d2f19..aa397b9 100644 --- a/src/client/pages/office/dashboard.js +++ b/src/client/pages/office/dashboard.js @@ -1,7 +1,8 @@ const dsteem = require('dsteem'), num2str = require('../../../utils/num2str.js'); -const client = new dsteem.Client('https://api.steemit.com'); +const settings = require('../../../../config/settings'); +const client = new dsteem.Client(settings.STEEM_RPC); $( document ).ready(function() { diff --git a/src/client/pages/office/wallet.js b/src/client/pages/office/wallet.js index e9463bf..bb38d24 100644 --- a/src/client/pages/office/wallet.js +++ b/src/client/pages/office/wallet.js @@ -1,7 +1,9 @@ const dsteem = require('dsteem'); -const client = new dsteem.Client('https://api.steemit.com'); +const settings = require('../../../../config/settings'); +const client = new dsteem.Client(settings.STEEM_RPC); + $( document ).ready(function() { diff --git a/src/client/pages/static/bot.js b/src/client/pages/static/bot.js index 5cd4724..0ef5ae3 100644 --- a/src/client/pages/static/bot.js +++ b/src/client/pages/static/bot.js @@ -1,7 +1,10 @@ const dsteem = require('dsteem'); -const client = new dsteem.Client('https://api.steemit.com'); + +const settings = require('../../../../config/settings'); +const client = new dsteem.Client(settings.STEEM_RPC); + var username = ''; diff --git a/src/client/pages/static/index.js b/src/client/pages/static/index.js index 7c90225..86c6848 100644 --- a/src/client/pages/static/index.js +++ b/src/client/pages/static/index.js @@ -3,8 +3,8 @@ const dsteem = require('dsteem'), num2str = require('../../../utils/num2str.js'); - -const client = new dsteem.Client('https://api.steemit.com'); +const settings = require('../../../../config/settings'); +const client = new dsteem.Client(settings.STEEM_RPC); window.onload = function() { diff --git a/src/client/pages/static/sponsor_list.js b/src/client/pages/static/sponsor_list.js index f823ffb..e340144 100644 --- a/src/client/pages/static/sponsor_list.js +++ b/src/client/pages/static/sponsor_list.js @@ -2,8 +2,8 @@ const dsteem = require('dsteem'), num2str = require('../../../utils/num2str.js'); - -const client = new dsteem.Client('https://api.steemit.com'); +const settings = require('../../../../config/settings'); +const client = new dsteem.Client(settings.STEEM_RPC); $.get('/api/sponsorship', async function(data, status){