new ipcs principle

This commit is contained in:
MathieuG-P
2022-06-25 03:48:45 +02:00
parent f0eb9bcd9e
commit e2c232002f
3 changed files with 55 additions and 0 deletions
+5
View File
@@ -4,6 +4,7 @@ import { homedir } from "os";
import path from "path";
import { BrowserWindow } from "electron";
import { rm } from "fs/promises";
import { IpcResponse } from "shared/models/ipc-models.model";
export class UtilsService{
@@ -68,4 +69,8 @@ export class UtilsService{
this.mainWindow.webContents.send(channel, args);
}
public newIpcSenc(channel: string, response: IpcResponse<any>): void{
this.mainWindow.webContents.send(channel, response);
}
}