aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-electron_lib_browser_api_menu-item-roles.ts
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-electron_lib_browser_api_menu-item-roles.ts')
-rw-r--r--devel/electron13/files/patch-electron_lib_browser_api_menu-item-roles.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-electron_lib_browser_api_menu-item-roles.ts b/devel/electron13/files/patch-electron_lib_browser_api_menu-item-roles.ts
new file mode 100644
index 000000000000..3d2986644290
--- /dev/null
+++ b/devel/electron13/files/patch-electron_lib_browser_api_menu-item-roles.ts
@@ -0,0 +1,11 @@
+--- electron/lib/browser/api/menu-item-roles.ts.orig 2021-01-25 12:14:34 UTC
++++ electron/lib/browser/api/menu-item-roles.ts
+@@ -2,7 +2,7 @@ import { app, BrowserWindow, WebContents, MenuItemCons
+
+ const isMac = process.platform === 'darwin';
+ const isWindows = process.platform === 'win32';
+-const isLinux = process.platform === 'linux';
++const isLinux = (process.platform === 'linux' || process.platform === 'freebsd');
+
+ type RoleId = 'about' | 'close' | 'copy' | 'cut' | 'delete' | 'forcereload' | 'front' | 'help' | 'hide' | 'hideothers' | 'minimize' |
+ 'paste' | 'pasteandmatchstyle' | 'quit' | 'redo' | 'reload' | 'resetzoom' | 'selectall' | 'services' | 'recentdocuments' | 'clearrecentdocuments' | 'startspeaking' | 'stopspeaking' |