mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
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:
parent
8ca862f1b8
commit
c00d488de2
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue