Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

555 B
Raw Blame
import {
  installDocPreviewLinkInterception,
  PRELOAD_DOC_PREVIEW_LINK_CLICK_CHANNEL
} from './doc-preview-link-interception'

// Raw require keeps the sandboxed preload standalone in the CJS build.
const { ipcRenderer } = require('electron') as {
  ipcRenderer: { send: (channel: string, ...args: unknown[]) => void }
}

// Keep the reporter in the isolated world so the document cannot call it through contextBridge.
installDocPreviewLinkInterception((url, modifiers) => {
  ipcRenderer.send(PRELOAD_DOC_PREVIEW_LINK_CLICK_CHANNEL, url, modifiers)
})