mirror of
https://github.com/bitinflow/rerun-encoder.git
synced 2026-03-13 13:46:00 +00:00
first commit
This commit is contained in:
8
electron/main/helpers.ts
Normal file
8
electron/main/helpers.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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)
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user