fix: connexion
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import AbstractView from "../AbstractView.js";
|
||||
import { client } from "../../index.js";
|
||||
import { client, navigateTo } from "../../index.js";
|
||||
|
||||
async function register()
|
||||
{
|
||||
@ -30,6 +30,11 @@ export default class extends AbstractView {
|
||||
|
||||
async postInit()
|
||||
{
|
||||
if (client.isAuthentificate())
|
||||
{
|
||||
navigateTo("/home")
|
||||
return;
|
||||
}
|
||||
document.getElementById("button").onclick = register;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user