mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-07-01 07:22:17 +02:00
Fix: uninotes guard
This commit is contained in:
@@ -191,7 +191,13 @@
|
||||
}
|
||||
|
||||
isAdmin = !!data.is_admin;
|
||||
username = data.username || null;
|
||||
username = data.logged_in ? (data.username || null) : null;
|
||||
// Keep localStorage in sync with what the server says
|
||||
if (!data.logged_in && localStorage.getItem('f4_username')) {
|
||||
localStorage.removeItem('f4_username');
|
||||
localStorage.removeItem('f4_login_time');
|
||||
localStorage.removeItem('f4_session_fails');
|
||||
}
|
||||
|
||||
// ── Render comments first ──
|
||||
if (!data.comments.length) {
|
||||
|
||||
Reference in New Issue
Block a user