mirror of
https://github.com/bitinflow/rerun-encoder.git
synced 2026-03-13 13:46:00 +00:00
8 lines
234 B
TypeScript
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)
|
|
});
|
|
} |