fix: autologin when no community

This commit is contained in:
Jean-Baptiste Pasquier 2021-02-23 21:43:21 +01:00
parent b15a5a637a
commit 34a2203b55

View File

@ -5,6 +5,7 @@ import {
export const HublAutoLogin = {
name: 'hubl-auto-login',
created() {
if (window.location.pathname == "/login") {
document
.querySelectorAll(".loggedIn-loader")
.forEach(el => (el.style.display = "flex"));
@ -17,6 +18,7 @@ export const HublAutoLogin = {
);
document.querySelector("sib-auth").login();
}
}
}
Sib.register(HublAutoLogin);