Fix signer token updates (#3302)

* Manual bump of package.json (recovery)

* Debug

* Simplify status connections


Former-commit-id: c5d0c002b60adeabd7726050437d0632763629ed
This commit is contained in:
Jaco Greeff
2016-11-09 18:26:10 +01:00
committed by Arkadiy Paronyan
parent 59372af0af
commit bfc99f5a76
3 changed files with 6 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ export default class SecureApi extends Api {
super(new Api.Transport.Ws(url, sysuiToken));
this._isConnecting = true;
this._connectState = 0;
this._connectState = sysuiToken === 'initial' ? 1 : 0;
this._needsToken = false;
this._dappsPort = 8080;
this._signerPort = 8180;
@@ -110,7 +110,7 @@ export default class SecureApi extends Api {
console.log('SecureApi:connectSuccess', this._transport.token);
}
updateToken (token, connectState) {
updateToken (token, connectState = 0) {
this._connectState = connectState;
this._transport.updateToken(token.replace(/[^a-zA-Z0-9]/g, ''));
this._followConnection();