diff --git a/public/js/app.js b/public/js/app.js index 35412df..f5d07b4 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -106,12 +106,8 @@ const App = { document.getElementById('main-layout').classList.add('hidden'); const pub = document.getElementById('public-page'); pub.classList.remove('hidden'); - if (page === 'home') { - document.getElementById('top-bar').classList.add('hidden'); - } else { - document.getElementById('top-bar').classList.remove('hidden'); - this.updateTopAuth(); - } + document.getElementById('top-bar').classList.remove('hidden'); + this.updateTopAuth(); const comp = page === 'login' ? LoginPage : page === 'register' ? RegisterPage : page === 'install' ? InstallPage : HomePage; comp.render(param).then(html => { pub.innerHTML = html; if (comp.mount) comp.mount(param); }).catch(() => { pub.innerHTML = '
';