mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-21 22:45:20 +00:00
Update ipc.js
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = (socket) => {
|
||||
electron_1.ipcMain.on(channel, (event, args) => {
|
||||
event.preventDefault();
|
||||
let wcId = event.sender.id;
|
||||
let wc = electron_1.webContents.fromId(wcId)
|
||||
let wc = electron_1.webContents.fromId(wcId);
|
||||
let bw = electron_1.BrowserWindow.fromWebContents(wc);
|
||||
electronSocket.emit(channel, { id: bw.id, wcId: wcId, args: [args] });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user