Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/ThemeSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getStoredTheme(): Theme {
return stored as Theme;
}
} catch {
// localStorage unavailable
// localStorage unavailable (e.g. private browsing, SSR)
}
return 'app';
}
Expand All @@ -55,7 +55,7 @@ function storeTheme(theme: Theme): void {
try {
localStorage.setItem(STORAGE_KEY, theme);
} catch {
// localStorage unavailable
// localStorage unavailable (e.g. private browsing, SSR)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/llm/kilo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class KiloGatewayProvider implements LLMProvider {
yield { content, done: false };
}
} catch {
// Skip invalid JSON
// Expected: SSE chunk not yet complete or invalid JSON
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/llm/openrouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class OpenRouterProvider implements LLMProvider {
yield { content, done: false };
}
} catch {
// Skip invalid JSON
// Expected: SSE chunk not yet complete or invalid JSON
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/perf/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const perf = {
try {
performance.mark(`${PERF_PREFIX}${name}`);
} catch {
// silently ignore in unsupported environments
// Performance API unavailable (e.g. SSR, older browsers)
}
},

Expand Down Expand Up @@ -86,7 +86,7 @@ export const perf = {
performance.clearMarks();
performance.clearMeasures();
} catch {
// ignore
// Performance API unavailable
}
},

Expand Down
Loading