/** True when running inside the Tauri webview (not a normal browser). Single * source for this check — origin.ts, platform-ws.ts, desktop-updater.ts, and * backend-config.ts all gate their Tauri-only code paths on it. */ export function inTauri(): boolean { return typeof window !== "undefined" && "__TAURI_INTERNALS__" in window; }