From c00d488de2d5e875050ed4079a03290e215893c9 Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Sat, 16 Jul 2016 15:37:27 -0700 Subject: [PATCH] Fix onWindow hook (#180) The `onWindow` method of plugins.js has no second parameter of `app`. Switch to the `BrowserWindow` passed as the first parameter. --- plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins.js b/plugins.js index d5275af4..b3389601 100644 --- a/plugins.js +++ b/plugins.js @@ -266,10 +266,10 @@ exports.onApp = function (app) { }); }; -exports.onWindow = function (win, app) { +exports.onWindow = function (win) { modules.forEach((plugin) => { if (plugin.onWindow) { - plugin.onWindow(app); + plugin.onWindow(win); } }); };