Update to cater for token URL

This commit is contained in:
Jaco Greeff 2017-08-31 14:08:15 +02:00
parent 0238295654
commit d957a10f47
2 changed files with 2 additions and 2 deletions

2
js/package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "parity.js", "name": "Parity",
"version": "1.8.17", "version": "1.8.17",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

View File

@ -279,7 +279,7 @@ export default class SecureApi extends Api {
const connectPromise = this._fetchSettings() const connectPromise = this._fetchSettings()
.then(() => { .then(() => {
// Update the URL and token in the transport layer // Update the URL and token in the transport layer
this.transport.url = SecureApi.transportUrl(this._wsUrl, this.protocol); this.transport.url = SecureApi.transportWsUrl(this._wsUrl, this.protocol);
this.provider.updateToken(token, false); this.provider.updateToken(token, false);
log.debug('connecting with token', token); log.debug('connecting with token', token);