fix(header): satisfy native Mac detection lint gate

This commit is contained in:
Palash Debnath
2026-09-07 12:02:15 +05:30
parent 9b9d4d6579
commit 99218e2c34
+1 -1
View File
@@ -155,7 +155,7 @@ export default function Header({
// The macOS config replaces the base window with decorated overlay chrome.
// Reserve its traffic-light area only inside the desktop webview.
const hasMacTrafficLights =
isDesktop && typeof navigator !== 'undefined' && /^Mac/.test(navigator.platform || '');
isDesktop && typeof navigator !== 'undefined' && (navigator.platform || '').startsWith('Mac');
const { t } = useTranslation();
// Sysinfo is subscribed here (not in App via useAppData) so the 5s poll
// only re-renders the header chrome, not the whole App tree.