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

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

View File

@ -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);
})
});