Make Menu API accept TopLevelWindow
This commit is contained in:
parent
1340b17424
commit
7473b612c5
10 changed files with 41 additions and 40 deletions
|
@ -17,4 +17,8 @@ TopLevelWindow.prototype._init = function () {
|
|||
}
|
||||
}
|
||||
|
||||
TopLevelWindow.getFocusedWindow = () => {
|
||||
return TopLevelWindow.getAllWindows().find((win) => win.isFocused())
|
||||
}
|
||||
|
||||
module.exports = TopLevelWindow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue