merge
This commit is contained in:
@@ -33,7 +33,19 @@ class ConnectionManager {
|
||||
localUserStore.setAuthToken(null);
|
||||
const state = localUserStore.generateState();
|
||||
const nonce = localUserStore.generateNonce();
|
||||
window.location.assign(`http://${PUSHER_URL}/login-screen?state=${state}&nonce=${nonce}`);
|
||||
|
||||
let loginUrl = `${PUSHER_URL}/login-screen?state=${state}&nonce=${nonce}`
|
||||
|
||||
if (loginUrl.startsWith("/")) {
|
||||
loginUrl = window.location.protocol +
|
||||
"//" +
|
||||
window.location.host +
|
||||
loginUrl;
|
||||
} else {
|
||||
loginUrl = `http://` + loginUrl;
|
||||
}
|
||||
|
||||
window.location.assign(loginUrl);
|
||||
}
|
||||
|
||||
public logout() {
|
||||
|
||||
Reference in New Issue
Block a user