We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d42b023 commit 78e4b1cCopy full SHA for 78e4b1c
lib/src/store.ts
@@ -420,7 +420,7 @@ export class Store {
420
if (agent) {
421
setCookieAuthentication(this, agent);
422
this.webSockets.forEach(ws => {
423
- authenticate(ws, this);
+ ws.readyState === ws.OPEN && authenticate(ws, this);
424
});
425
this.resources.forEach(r => {
426
if (r.isUnauthorized()) {
@@ -434,7 +434,7 @@ export class Store {
434
public setServerUrl(url: string): void {
435
tryValidURL(url);
436
437
- if (url.substr(-1) === '/') {
+ if (url.substring(-1) === '/') {
438
throw Error('baseUrl should not have a trailing slash');
439
}
440
0 commit comments