mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Merge pull request #1089 from esteemapp/bugfix/serverlist
Bugfix/serverlist
This commit is contained in:
commit
397c3c44d3
@ -322,7 +322,23 @@ export const uploadImage = file => {
|
||||
// });
|
||||
// });
|
||||
|
||||
export const getNodes = () => serverList.get().then(resp => resp.data.nodes);
|
||||
export const getNodes = () =>
|
||||
serverList
|
||||
.get()
|
||||
.then(
|
||||
resp =>
|
||||
resp.data.nodes || [
|
||||
'https://rpc.esteem.app',
|
||||
'https://api.steemit.com',
|
||||
'https://steemd.previx.io',
|
||||
'https://anyx.io',
|
||||
'https://rpc.buildteam.io',
|
||||
'https://rpc.steemviz.com',
|
||||
'https://api.steem.house',
|
||||
'https://steemd.pevo.science',
|
||||
'https://steemd.minnowsupportproject.org',
|
||||
],
|
||||
);
|
||||
|
||||
export const getSCAccessToken = code =>
|
||||
new Promise(resolve => {
|
||||
|
@ -73,7 +73,21 @@ class SettingsContainer extends Component {
|
||||
.then(resp => {
|
||||
this.setState({ serverList: resp });
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() =>
|
||||
this.setState({
|
||||
serverList: [
|
||||
'https://rpc.esteem.app',
|
||||
'https://api.steemit.com',
|
||||
'https://steemd.previx.io',
|
||||
'https://anyx.io',
|
||||
'https://rpc.buildteam.io',
|
||||
'https://rpc.steemviz.com',
|
||||
'https://api.steem.house',
|
||||
'https://steemd.pevo.science',
|
||||
'https://steemd.minnowsupportproject.org',
|
||||
],
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
// Component Functions
|
||||
|
Loading…
Reference in New Issue
Block a user