You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
350 B
11 lines
350 B
import { appRouter } from "../common/app";
|
|
import { BrowserWindow } from "electron";
|
|
import { createIPCHandler } from 'electron-trpc/main';
|
|
|
|
const handler = createIPCHandler({ router: appRouter, windows: []});
|
|
|
|
export function trpcBindWindows(windows: BrowserWindow[]) {
|
|
windows.forEach(window => {
|
|
handler.attachWindow(window);
|
|
});
|
|
}
|