Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Remove call to /api/ping (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Jul 10, 2018
1 parent 13bd1b4 commit ba8e2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/secureApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default class SecureApi extends Api {
* otherwise (HEAD request to the Node)
*/
isNodeUp () {
return fetch(`${this.protocol()}//${this._wsUrl}/api/ping`, { method: 'HEAD', mode: 'no-cors' })
return fetch(`${this.protocol()}//${this._wsUrl}`, { method: 'HEAD', mode: 'no-cors' })
.then(() => true)
.catch(() => false);
}
Expand Down

0 comments on commit ba8e2a1

Please sign in to comment.