MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getDownloadUrl

Function getDownloadUrl

src/components/DesktopHandoff.tsx:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import { LoadingState } from './design-system/LoadingState.js';
12const DESKTOP_DOCS_URL = 'https://clau.de/desktop';
13export function getDownloadUrl(): string {
14 switch (process.platform) {
15 case 'win32':
16 return 'https://claude.ai/api/desktop/win32/x64/exe/latest/redirect';
17 default:
18 return 'https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect';
19 }
20}
21type DesktopHandoffState = 'checking' | 'prompt-download' | 'flushing' | 'opening' | 'success' | 'error';
22type Props = {
23 onDone: (result?: string, options?: {

Callers 1

DesktopHandoffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected