From 30e3a6ed8363ff99b5c301c2b866e981b25d8b89 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 22 Jun 2016 13:59:49 -0700 Subject: [PATCH] Add app require --- lib/browser/api/menu-item-roles.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/browser/api/menu-item-roles.js b/lib/browser/api/menu-item-roles.js index 947bf4d28c1f..a6a985a5e2b4 100644 --- a/lib/browser/api/menu-item-roles.js +++ b/lib/browser/api/menu-item-roles.js @@ -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 }