opti: do not execute postInit if getHtml is null
This commit is contained in:
@ -30,14 +30,11 @@ export default class extends AbstractView {
|
||||
|
||||
async postInit()
|
||||
{
|
||||
let register_button = document.getElementById("button")
|
||||
if (register_button != null)
|
||||
register_button.onclick = register;
|
||||
|
||||
document.getElementById("button").onclick = register;
|
||||
}
|
||||
|
||||
async getHtml() {
|
||||
if (client.isAuthentificate())
|
||||
if (await client.isAuthentificate())
|
||||
{
|
||||
navigateTo("/home")
|
||||
return;
|
||||
|
Reference in New Issue
Block a user