Upload 5 modified files from chat-switchboard-v0.5.1-2.zip
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">
|
||||
<link rel="apple-touch-icon" sizes="192x192" href="favicon-192.png">
|
||||
<link rel="stylesheet" href="css/styles.css?v=0.5.1-1">
|
||||
<link rel="stylesheet" href="css/styles.css?v=0.5.1-2">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -305,9 +305,9 @@
|
||||
onerror="this.onerror=null; this.src='https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.2.4/purify.min.js'">
|
||||
</script>
|
||||
|
||||
<script src="js/debug.js?v=0.5.1-1"></script>
|
||||
<script src="js/api.js?v=0.5.1-1"></script>
|
||||
<script src="js/ui.js?v=0.5.1-1"></script>
|
||||
<script src="js/app.js?v=0.5.1-1"></script>
|
||||
<script src="js/debug.js?v=0.5.1-2"></script>
|
||||
<script src="js/api.js?v=0.5.1-2"></script>
|
||||
<script src="js/ui.js?v=0.5.1-2"></script>
|
||||
<script src="js/app.js?v=0.5.1-2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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