20 lines
468 B
JavaScript
20 lines
468 B
JavaScript
|
import { Sib } from 'https://cdn.skypack.dev/@startinblox/core@0.15';
|
||
|
|
||
|
export const HublAutoLogin = {
|
||
|
name: 'hubl-auto-login',
|
||
|
created() {
|
||
|
document
|
||
|
.querySelectorAll(".loggedIn")
|
||
|
.forEach(el => (el.style.display = "flex"));
|
||
|
window.dispatchEvent(
|
||
|
new CustomEvent('requestNavigation', {
|
||
|
detail: {
|
||
|
route: "dashboard"
|
||
|
}
|
||
|
}),
|
||
|
);
|
||
|
document.querySelector("sib-auth").login();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Sib.register(HublAutoLogin);
|