Upload 5 modified files from chat-switchboard-v0.5.1-2.zip
This commit is contained in:
@@ -43,8 +43,14 @@ async function init() {
|
||||
await API.getProfile();
|
||||
console.log('✅ Session valid for', API.user?.username);
|
||||
} catch (e) {
|
||||
console.warn('⚠️ Session expired, clearing');
|
||||
API.clearTokens();
|
||||
if (e.status === 401) {
|
||||
console.warn('⚠️ Session expired, clearing');
|
||||
API.clearTokens();
|
||||
} else {
|
||||
// 404 = profile not created yet, other errors = transient
|
||||
// Token is still valid, proceed
|
||||
console.log('ℹ️ Profile fetch returned', e.status || e.message, '— session OK');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@ const DebugLog = {
|
||||
badge.innerHTML = '🐛';
|
||||
badge.title = 'Debug Log (Ctrl+Shift+L)';
|
||||
badge.style.cssText = `
|
||||
position: fixed; bottom: 12px; right: 12px; z-index: 100000;
|
||||
position: fixed; bottom: 12px; left: 12px; z-index: 100000;
|
||||
width: 36px; height: 36px; border-radius: 50%;
|
||||
background: var(--bg-secondary, #2a2a2a); border: 1px solid var(--border, #444);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
|
||||
Reference in New Issue
Block a user