Files
rerun-encoder/electron/main/helpers.ts
René Preuß 4ab5e76d85 first commit
2023-03-01 19:24:20 +01:00

8 lines
234 B
TypeScript

import {BrowserWindow} from "electron";
export function emit(event: any, ...args: any) {
// Send a message to all windows
BrowserWindow.getAllWindows().forEach((win) => {
win.webContents.send(event, ...args)
});
}