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:
parent
6cf895a13c
commit
ec6ecdf337
@ -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": {
|
||||
|
@ -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);
|
||||
|
6
typings/electron-context-menu.d.ts
vendored
6
typings/electron-context-menu.d.ts
vendored
@ -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' {
|
||||
|
Loading…
x
Reference in New Issue
Block a user