1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00

fix linter errors and bump version (0.2.5)

This commit is contained in:
rhysd 2017-05-08 19:29:49 +09:00
parent 6cf895a13c
commit ec6ecdf337
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{
"name": "mstdn",
"productName": "Mstdn",
"version": "0.2.4",
"version": "0.2.5",
"description": "Tiny web-based mastodon client for your desktop",
"main": "main/index.js",
"bin": {

View File

@ -10,7 +10,7 @@ function scrollable(pred: (elem: HTMLElement) => void) {
const scrollables = document.querySelectorAll('.scrollable') as NodeListOf<HTMLElement>;
if (scrollables.length === 0) {
log.error('Scrollable element was not found!');
return
return;
}
for (const elem of scrollables) {
pred(elem);

View File

@ -1,8 +1,6 @@
declare namespace ElectronContextMenu {
interface Options {
window?: Electron.BrowserWindow | Electron.WebViewElement;
prepend?: (params: any, win: Electron.BrowserWindow) => Electron.MenuItem[];
append?: (...args: any[]) => any;
showInspectElement?: boolean;
labels?: {
cut: string;
@ -12,7 +10,9 @@ declare namespace ElectronContextMenu {
copyLink: string;
inspect: string;
};
shouldShowMenu?: (event: Event, params: any) => boolean;
append?(...args: any[]): any;
prepend?(params: any, win: Electron.BrowserWindow): Electron.MenuItem[];
shouldShowMenu?(event: Event, params: any): boolean;
}
}
declare module 'electron-context-menu' {