fix: loadFooter only for admin, only once per session
This commit is contained in:
@@ -13,11 +13,14 @@ const App = {
|
||||
|
||||
async init() {
|
||||
try { const s = await API.get('/install/status'); if (!s.installed) { location.hash = '#/install'; return; } } catch { location.hash = '#/install'; return; }
|
||||
this._footerLoaded = false;
|
||||
window.addEventListener('hashchange', () => this.route());
|
||||
this.route();
|
||||
},
|
||||
|
||||
async loadFooter() {
|
||||
if (!Auth.isAdmin() || this._footerLoaded) return;
|
||||
this._footerLoaded = true;
|
||||
try {
|
||||
const s = await API.get('/settings/settings');
|
||||
const cr = document.getElementById('footer-copyright');
|
||||
|
||||
Reference in New Issue
Block a user