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.
This commit is contained in:
Dylan Frankland 2016-07-16 15:37:27 -07:00 committed by Guillermo Rauch
parent 8ca862f1b8
commit c00d488de2

View file

@ -266,10 +266,10 @@ exports.onApp = function (app) {
}); });
}; };
exports.onWindow = function (win, app) { exports.onWindow = function (win) {
modules.forEach((plugin) => { modules.forEach((plugin) => {
if (plugin.onWindow) { if (plugin.onWindow) {
plugin.onWindow(app); plugin.onWindow(win);
} }
}); });
}; };