mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-01-21 20:52:11 +01:00
tslint
This commit is contained in:
parent
d9bdb4571d
commit
8395159007
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ export default class Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isMenubar() {
|
isMenubar() {
|
||||||
return this.browser !== null;
|
return this.menubar !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
@ -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);
|
||||||
})
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user