opti: do not execute postInit if getHtml is null
This commit is contained in:
@ -35,9 +35,7 @@ export default class extends AbstractView {
|
||||
|
||||
async postInit()
|
||||
{
|
||||
let login_button = document.getElementById("button")
|
||||
if (login_button != null)
|
||||
login_button.onclick = login;
|
||||
document.getElementById("button").onclick = login;
|
||||
}
|
||||
|
||||
async getHtml() {
|
||||
|
Reference in New Issue
Block a user