From 8395159007910d7626cfe8c05479dfa156e59963 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 18 Apr 2017 15:56:46 +0900 Subject: [PATCH] tslint --- main/default_menu.ts | 4 ++-- main/window.ts | 2 +- renderer/index.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main/default_menu.ts b/main/default_menu.ts index fddf259..6fbcbcd 100644 --- a/main/default_menu.ts +++ b/main/default_menu.ts @@ -89,13 +89,13 @@ export default function defaultMenu() { submenu: [ { label: 'Learn More', - click () { + click() { shell.openExternal('https://github.com/rhysd/Mstdn#readme'); } }, { label: 'Search Issues', - click () { + click() { shell.openExternal('https://github.com/rhysd/Mstdn/issues'); } } diff --git a/main/window.ts b/main/window.ts index e1eb65c..19d4fd6 100644 --- a/main/window.ts +++ b/main/window.ts @@ -61,7 +61,7 @@ export default class Window { } isMenubar() { - return this.browser !== null; + return this.menubar !== null; } close() { diff --git a/renderer/index.ts b/renderer/index.ts index f4edf45..0039a04 100644 --- a/renderer/index.ts +++ b/renderer/index.ts @@ -39,7 +39,7 @@ function setupKeybinds(keybinds: {[key: string]: string}, host: string) { }); } else { const func = ShortcutActions[action]; - if (func === undefined) { + if (!func) { log.error('Unknown shortcut action:', action); continue; } @@ -66,4 +66,4 @@ Ipc.on('mstdn:change-account', (account: Account) => { return; } setupKeybinds(config.keymaps, account.host); -}) +});