2021-02-17 17:40:12 +00:00
|
|
|
import { Sib } from 'https://cdn.skypack.dev/@startinblox/core@0.15';
|
|
|
|
|
|
|
|
export const HublAutoLogin = {
|
|
|
|
name: 'hubl-auto-login',
|
|
|
|
created() {
|
|
|
|
document
|
2021-02-17 18:22:22 +00:00
|
|
|
.querySelectorAll(".loggedIn-loader")
|
2021-02-17 17:40:12 +00:00
|
|
|
.forEach(el => (el.style.display = "flex"));
|
|
|
|
window.dispatchEvent(
|
|
|
|
new CustomEvent('requestNavigation', {
|
|
|
|
detail: {
|
|
|
|
route: "dashboard"
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
);
|
|
|
|
document.querySelector("sib-auth").login();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Sib.register(HublAutoLogin);
|