Skip to content

Commit 68feffb

Browse files
authored
Merge pull request #922 from softworkz/submit_fix_ipc_params
Fix sendToIpcRenderer parameter handling
2 parents 979cf72 + 12d2fcb commit 68feffb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ElectronNET.Host/api/ipc.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ElectronNET.Host/api/ipc.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ElectronNET.Host/api/ipc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ export = (socket: Socket) => {
3232
ipcMain.removeAllListeners(channel);
3333
});
3434

35-
socket.on('sendToIpcRenderer', (browserWindow, channel, ...data) => {
35+
socket.on('sendToIpcRenderer', (browserWindow, channel, data) => {
3636
const window = BrowserWindow.fromId(browserWindow.id);
3737

3838
if (window) {
3939
window.webContents.send(channel, ...data);
4040
}
4141
});
4242

43-
socket.on('sendToIpcRendererBrowserView', (id, channel, ...data) => {
43+
socket.on('sendToIpcRendererBrowserView', (id, channel, data) => {
4444
const browserViews: BrowserView[] = (global['browserViews'] = global['browserViews'] || []) as BrowserView[];
4545
let view: BrowserView = null;
4646
for (let i = 0; i < browserViews.length; i++) {

0 commit comments

Comments
 (0)