Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

439 B
Raw Blame
/** Keep invitations to another Macro environment on their original host. */
export function calendarCallNavigation(value: string, webOrigin: string) {
  const url = new URL(value, webOrigin);
  return url.origin === new URL(webOrigin).origin
    ? {
        kind: 'internal' as const,
        path: `${url.pathname.replace(/^\/app(?=\/)/, '')}${url.search}${url.hash}`,
      }
    : { kind: 'external' as const, url: url.toString() };
}