fix: login broken by sync/async mismatch, register missing home link, top bar contrast
This commit is contained in:
@@ -89,7 +89,7 @@ const App = {
|
||||
const pub = document.getElementById('public-page');
|
||||
pub.classList.remove('hidden');
|
||||
const comp = page === 'login' ? LoginPage : page === 'register' ? RegisterPage : page === 'install' ? InstallPage : HomePage;
|
||||
comp.render().then(html => { pub.innerHTML = html; if (comp.mount) comp.mount(); });
|
||||
Promise.resolve(comp.render()).then(html => { pub.innerHTML = html; if (comp.mount) comp.mount(); });
|
||||
},
|
||||
|
||||
showLayout() {
|
||||
|
||||
Reference in New Issue
Block a user