/**
 * Detects whether the page is running inside the Tauri shell. The shell
 * injects `__TAURI_INTERNALS__` on the global before any user code runs, so
 * the check is synchronous and safe at module init time.
 *
 * Used to gate features that only make sense in the desktop shell (custom
 * titlebar, native window controls, autoplay flags, etc.).
 */
export const isTauri =
  typeof window !== 'undefined' &&
  ('__TAURI_INTERNALS__' in window || '__TAURI_IPC__' in window)
