LCOV - code coverage report
Current view: top level - dashql-app/src/app - mac_window_layout.ts Coverage Total Hit
Test: DashQL 915828b Lines: 100.0 % 4 4
Test Date: 2026-11-06 19:30:32

            Line data    Source code
       1              : import { isMacDesktopHost } from '../platform/platform_type.js';
       2              : import { useAppConfig } from '../config/app_config.js';
       3              : 
       4              : /// Is the app laid out like the desktop app on macOS, with the traffic lights in the top left corner of the window?
       5              : /// The Mac Window Layout setting shows this layout in the browser.
       6            1 : export function useMacWindowLayout(): boolean {
       7            1 :     const config = useAppConfig();
       8            1 :     return isMacDesktopHost() || (config?.settings?.macWindowLayout ?? false);
       9            1 : }
        

Generated by: LCOV version 2.0-1