MCPcopy Index your code
hub / github.com/gitify-app/gitify / handleProtocolURL

Function handleProtocolURL

src/main/lifecycle/startup.ts:46–55  ·  view source on GitHub ↗
(
  mb: Menubar,
  url: string,
  protocol: string,
)

Source from the content-addressed store, hash-verified

44 * @param protocol - The custom protocol string to match.
45 */
46export function handleProtocolURL(
47 mb: Menubar,
48 url: string,
49 protocol: string,
50): void {
51 if (url.startsWith(`${protocol}://`)) {
52 logInfo('main:handleUrl', `forwarding URL ${url} to renderer process`);
53 sendRendererEvent(mb, EVENTS.AUTH_CALLBACK, url);
54 }
55}
56
57/**
58 * Enforce a single application instance. If a second instance is launched,

Callers 3

index.tsFile · 0.90
startup.test.tsFile · 0.90
preventSecondInstanceFunction · 0.85

Calls 2

logInfoFunction · 0.90
sendRendererEventFunction · 0.90

Tested by

no test coverage detected