Browse Source

feat: hide electron links in default help menu when packaged (#25831)

Jeremy Rose 4 years ago
parent
commit
b8f414f4da
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/browser/default-menu.ts

+ 2 - 2
lib/browser/default-menu.ts

@@ -1,4 +1,4 @@
-import { Menu } from 'electron/main';
+import { app, Menu } from 'electron/main';
 import { shell } from 'electron/common';
 
 const v8Util = process._linkedBinding('electron_common_v8_util');
@@ -10,7 +10,7 @@ export const setDefaultApplicationMenu = () => {
 
   const helpMenu: Electron.MenuItemConstructorOptions = {
     role: 'help',
-    submenu: [
+    submenu: app.isPackaged ? [] : [
       {
         label: 'Learn More',
         click: async () => {