1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00
This commit is contained in:
rhysd 2017-04-18 15:56:46 +09:00
parent d9bdb4571d
commit 8395159007
3 changed files with 5 additions and 5 deletions

View File

@ -89,13 +89,13 @@ export default function defaultMenu() {
submenu: [ submenu: [
{ {
label: 'Learn More', label: 'Learn More',
click () { click() {
shell.openExternal('https://github.com/rhysd/Mstdn#readme'); shell.openExternal('https://github.com/rhysd/Mstdn#readme');
} }
}, },
{ {
label: 'Search Issues', label: 'Search Issues',
click () { click() {
shell.openExternal('https://github.com/rhysd/Mstdn/issues'); shell.openExternal('https://github.com/rhysd/Mstdn/issues');
} }
} }

View File

@ -61,7 +61,7 @@ export default class Window {
} }
isMenubar() { isMenubar() {
return this.browser !== null; return this.menubar !== null;
} }
close() { close() {

View File

@ -39,7 +39,7 @@ function setupKeybinds(keybinds: {[key: string]: string}, host: string) {
}); });
} else { } else {
const func = ShortcutActions[action]; const func = ShortcutActions[action];
if (func === undefined) { if (!func) {
log.error('Unknown shortcut action:', action); log.error('Unknown shortcut action:', action);
continue; continue;
} }
@ -66,4 +66,4 @@ Ipc.on('mstdn:change-account', (account: Account) => {
return; return;
} }
setupKeybinds(config.keymaps, account.host); setupKeybinds(config.keymaps, account.host);
}) });