Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

434 B
Raw Blame
/**
 * For the app's best-effort calls (a haptic tap, the offline start page, a
 * share sheet): the failure is not worth a toast, but it must not vanish
 * either. reportError() hands it to the page's error event, which
 * utils/globalErrorHandlers.ts logs like any other uncaught error.
 */
export function reportNativeFailure(err: unknown): void {
  if (typeof globalThis.reportError === 'function') globalThis.reportError(err);
}