Skip to content

Commit

Permalink
use rpc from settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzivenu committed Oct 1, 2018
1 parent bb68967 commit 791bb52
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/client/pages/office/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down
3 changes: 2 additions & 1 deletion src/client/pages/office/dashboard.js
Original file line number Diff line number Diff line change
@@ -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() {

Expand Down
4 changes: 3 additions & 1 deletion src/client/pages/office/wallet.js
Original file line number Diff line number Diff line change
@@ -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() {


Expand Down
5 changes: 4 additions & 1 deletion src/client/pages/static/bot.js
Original file line number Diff line number Diff line change
@@ -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 = '';


Expand Down
4 changes: 2 additions & 2 deletions src/client/pages/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down
4 changes: 2 additions & 2 deletions src/client/pages/static/sponsor_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 791bb52

Please sign in to comment.