fix: autologin when no community
This commit is contained in:
parent
b15a5a637a
commit
34a2203b55
@ -5,6 +5,7 @@ import {
|
|||||||
export const HublAutoLogin = {
|
export const HublAutoLogin = {
|
||||||
name: 'hubl-auto-login',
|
name: 'hubl-auto-login',
|
||||||
created() {
|
created() {
|
||||||
|
if (window.location.pathname == "/login") {
|
||||||
document
|
document
|
||||||
.querySelectorAll(".loggedIn-loader")
|
.querySelectorAll(".loggedIn-loader")
|
||||||
.forEach(el => (el.style.display = "flex"));
|
.forEach(el => (el.style.display = "flex"));
|
||||||
@ -18,5 +19,6 @@ export const HublAutoLogin = {
|
|||||||
document.querySelector("sib-auth").login();
|
document.querySelector("sib-auth").login();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Sib.register(HublAutoLogin);
|
Sib.register(HublAutoLogin);
|
Loading…
Reference in New Issue
Block a user