From 2d343f45964c457783919638aa7685fc6fa4350b Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Fri, 6 Mar 2020 22:38:27 +0530 Subject: [PATCH] use electron app name property instead of getName function --- app/menus/menu.ts | 2 +- app/menus/menus/darwin.ts | 2 +- app/menus/menus/help.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/menus/menu.ts b/app/menus/menu.ts index 6a896a39..35a31f97 100644 --- a/app/menus/menu.ts +++ b/app/menus/menu.ts @@ -15,7 +15,7 @@ import {getDecoratedKeymaps} from '../plugins'; import {execCommand} from '../commands'; import {getRendererTypes} from '../utils/renderer-utils'; -const appName = app.getName(); +const appName = app.name; const appVersion = app.getVersion(); let menu_: Menu; diff --git a/app/menus/menus/darwin.ts b/app/menus/menus/darwin.ts index 6756ab20..1a1376d6 100644 --- a/app/menus/menus/darwin.ts +++ b/app/menus/menus/darwin.ts @@ -8,7 +8,7 @@ export default ( showAbout: () => void ): MenuItemConstructorOptions => { return { - label: `${app.getName()}`, + label: `${app.name}`, submenu: [ { label: 'About Hyper', diff --git a/app/menus/menus/help.ts b/app/menus/menus/help.ts index 07d4414b..c97d296e 100644 --- a/app/menus/menus/help.ts +++ b/app/menus/menus/help.ts @@ -7,7 +7,7 @@ import {version} from '../../package.json'; export default (commands: Record, showAbout: () => void): MenuItemConstructorOptions => { const submenu: MenuItemConstructorOptions[] = [ { - label: `${app.getName()} Website`, + label: `${app.name} Website`, click() { shell.openExternal('https://hyper.is'); } @@ -42,7 +42,7 @@ export default (commands: Record, showAbout: () => void): MenuIt - - **${app.getName()} version**: ${env.TERM_PROGRAM_VERSION} "${app.getVersion()}" + - **${app.name} version**: ${env.TERM_PROGRAM_VERSION} "${app.getVersion()}" - **OS ARCH VERSION:** ${platform} ${arch} ${release()} - **Electron:** ${versions.electron} **LANG:** ${env.LANG}