mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
System to handle IPC communication
This commit is contained in:
@@ -3,7 +3,7 @@ import * as path from 'path'
|
||||
import * as url from 'url'
|
||||
|
||||
// IPC Handlers
|
||||
// import { getIPCHandlers } from './src/assets/electron/shared/IPCHandler'
|
||||
import { getIPCHandlers } from './shared/IPCHandler'
|
||||
|
||||
let mainWindow: BrowserWindow
|
||||
const args = process.argv.slice(1)
|
||||
@@ -60,7 +60,7 @@ function createBridgeWindow() {
|
||||
mainWindow.setMenu(null)
|
||||
|
||||
// IPC handlers
|
||||
// getIPCHandlers().map(handler => ipcMain.handle(handler.event, (_event, ...args) => handler.handler(args[0])))
|
||||
getIPCHandlers().map(handler => ipcMain.handle(handler.event, (_event, ...args) => handler.handler(args[0])))
|
||||
|
||||
// Load angular app
|
||||
mainWindow.loadURL(getLoadUrl())
|
||||
|
||||
Reference in New Issue
Block a user