first commit

This commit is contained in:
René Preuß
2023-03-01 19:24:20 +01:00
commit 4ab5e76d85
45 changed files with 1963 additions and 0 deletions

8
electron/main/helpers.ts Normal file
View 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)
});
}