mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
new ipcs principle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user