Fixed ping and comment #3587
This commit is contained in:
@@ -102,12 +102,7 @@ export default class Ws extends JsonRpcBase {
|
||||
}
|
||||
|
||||
_checkNodeUp () {
|
||||
const url = process.env.PARITY_URL || window.location.host;
|
||||
|
||||
return fetch(
|
||||
`http://${url}/api/ping`,
|
||||
{ method: 'HEAD' }
|
||||
)
|
||||
return fetch('/', { method: 'HEAD' })
|
||||
.then((r) => {
|
||||
return r.status === 200;
|
||||
}, () => {
|
||||
|
||||
@@ -102,7 +102,7 @@ export default class Status {
|
||||
}, timeout);
|
||||
};
|
||||
|
||||
fetch('/api/ping', { method: 'HEAD' })
|
||||
fetch('/', { method: 'HEAD' })
|
||||
.then((response) => dispatch(!!response.ok))
|
||||
.catch(() => dispatch(false));
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ export default class SecureApi extends Api {
|
||||
this._signerPort = 8180;
|
||||
this._followConnectionTimeoutId = null;
|
||||
|
||||
// Try tokens from hash, then from localstorage
|
||||
// Try tokens from localstorage, then from hash
|
||||
this._tokensToTry = [ sysuiToken, nextToken ].filter((t) => t && t.length);
|
||||
|
||||
this._followConnection();
|
||||
|
||||
Reference in New Issue
Block a user