- add desktop IPC handler to validate and open http(s) URLs via Electron shell - expose `shell.openExternal` in shared NativeApi contracts and web bridge - route Git PR opening and native API reads through the new `useNativeApi` hook Co-authored-by: codex <[email protected]>
7 lines
164 B
TypeScript
7 lines
164 B
TypeScript
import { useMemo } from "react";
|
|
import { readNativeApi } from "../session-logic";
|
|
|
|
export function useNativeApi() {
|
|
return useMemo(() => readNativeApi(), []);
|
|
}
|