Add app require
This commit is contained in:
parent
66f2fb2fe4
commit
30e3a6ed83
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ exports.execute = function (role, focusedWindow) {
|
|||
const {appMethod, webContentsMethod, windowMethod} = roles[role]
|
||||
|
||||
if (appMethod) {
|
||||
const {app} = require('electron')
|
||||
app[appMethod]()
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue