1import * as Effect from "effect/Effect";
2import * as Schema from "effect/Schema";
3
4import * as DesktopWebLinks from "../../app/DesktopWebLinks.ts";
5import * as IpcChannels from "../channels.ts";
6import * as DesktopIpc from "../DesktopIpc.ts";
7
8export const setReady = DesktopIpc.makeIpcMethod({
9 channel: IpcChannels.WEB_LINK_READY_CHANNEL,
10 payload: Schema.Boolean,
11 result: Schema.Void,
12 handler: Effect.fn("desktop.ipc.webLinks.setReady")(function* (ready) {
13 const webLinks = yield* DesktopWebLinks.DesktopWebLinks;
14 yield* webLinks.setRendererReady(ready);
15 }),
16});