Back out Electron 7.1.1/7.1.2 upgrades

Summary:
Original commit changeset: eddfbb3571c7
Original commit changeset: f7300f527b65

Pains me to do this, but probably our best chance right now to get a release out.

Reviewed By: cekkaewnumchai

Differential Revision: D18687890

fbshipit-source-id: 05d13aca71457ca6dd19f5b45d58158ae223e66f
This commit is contained in:
Pascal Hartig
2019-11-25 10:48:59 -08:00
committed by realpassy
parent adb1cb163b
commit a75a52a25b
10 changed files with 546 additions and 446 deletions

View File

@@ -108,7 +108,7 @@ export function setupMenuBar(
const menu = applicationMenu.items.find(
menuItem => menuItem.label === topLevelMenu,
);
if (menu && menu.submenu) {
if (menu) {
const menuItem = menu.submenu.items.find(
menuItem => menuItem.label === label,
);
@@ -270,7 +270,7 @@ function getTemplate(
{
label: 'Select All',
accelerator: 'CmdOrCtrl+A',
role: 'selectAll',
role: 'selectall',
},
],
},
@@ -384,7 +384,7 @@ function getTemplate(
];
if (process.platform === 'darwin') {
const name = app.name;
const name = app.getName();
template.unshift({
label: name,
submenu: [
@@ -411,7 +411,7 @@ function getTemplate(
{
label: 'Hide Others',
accelerator: 'Command+Shift+H',
role: 'hideOthers',
role: 'hideothers',
},
{
label: 'Show All',