From 432fc30c3cc4a6b2cb75d5ee78a23bcecd8d57b9 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Fri, 24 Apr 2020 02:02:11 +0530 Subject: [PATCH] fix 'uri too large' error while reporting issue --- app/menus/menus/help.ts | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/app/menus/menus/help.ts b/app/menus/menus/help.ts index 1c296a97..cd679fb8 100644 --- a/app/menus/menus/help.ts +++ b/app/menus/menus/help.ts @@ -1,5 +1,5 @@ import {release} from 'os'; -import {app, shell, MenuItemConstructorOptions} from 'electron'; +import {app, shell, MenuItemConstructorOptions, dialog, clipboard} from 'electron'; import {getConfig, getPlugins} from '../../config'; const {arch, env, platform, versions} = process; import {version} from '../../package.json'; @@ -14,7 +14,7 @@ export default (commands: Record, showAbout: () => void): MenuIt }, { label: 'Report Issue', - click() { + click(menuItem, focusedWindow) { const body = `\n' + )}` + ); + } + }); + } else { + shell.openExternal(issueURL); + } } } ];