Add app require

This commit is contained in:
Kevin Sawicki 2016-06-22 13:59:49 -07:00
parent 66f2fb2fe4
commit 30e3a6ed83

View file

@ -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
}