Skip to content
Snippets Groups Projects
Commit 8f0e71de authored by roadscape's avatar roadscape
Browse files

use uri by default, ws as fallback

parent 5fd9dd5d
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ describe('steem.api:', function () { ...@@ -9,8 +9,8 @@ describe('steem.api:', function () {
describe('setOptions', () => { describe('setOptions', () => {
it('works', () => { it('works', () => {
let url = steem.config.get('websocket'); let url = steem.config.get('uri');
if(! url) url = steem.config.get('uri'); if(! url) url = steem.config.get('websocket');
steem.api.setOptions({ url: url, useAppbaseApi: true }); steem.api.setOptions({ url: url, useAppbaseApi: true });
}); });
}); });
......
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