INNER CODE UNIT · TypeScript
handleDeepLink
BradGroux/veritas-kanban · desktop/src/main/index.ts:178
function handleDeepLink(url: string): void {
if (!commandDispatcher) {
pendingDeepLinks.push(url);
return;
}
try {
const deepLink = parseDesktopDeepLink(url);
void commandDispatcher.dispatch(deepLink.command);
} catch (error) {
activeMainWindow()?.webContents.send(DESKTOP_BRIDGE_EVENTS.communicationCheck.channel, {
target: 'external',
state: 'failed',
detail: error instanceof Error ? error.message : String(error),
checkedAt: new Date().toISOString(),
});
}
}