From 2549307a7ece46a29f7138adfc4cbce572ddfa89 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 5 Apr 2016 18:34:09 -0700 Subject: [PATCH] style --- main/ipc.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/main/ipc.js b/main/ipc.js index 99682719..c9ef307d 100644 --- a/main/ipc.js +++ b/main/ipc.js @@ -79,16 +79,13 @@ function init () { ipcMain.emit = function (name, e, ...args) { // Relay messages between the main window and the WebTorrent hidden window if (name.startsWith('wt-')) { - var recipient, recipientStr if (e.sender.browserWindowOptions.title === 'webtorrent-hidden-window') { - recipient = windows.main - recipientStr = 'main' + windows.main.send(name, ...args) + log('webtorrent ipc: sent %s', name) } else { - recipient = windows.webtorrent - recipientStr = 'webtorrent' + windows.webtorrent.send(name, ...args) + log('webtorrent ipc: receieved %s', name) } - console.log('sending %s to %s', name, recipientStr) - recipient.send(name, ...args) return }