Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/loader/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export const createContext = <Config extends PluginConfig>(
invoke: (event: string, ...args: unknown[]) =>
window.ipcRenderer.invoke(event, ...args),
on: (event: string, listener: CallableFunction) => {
window.ipcRenderer.on(event, (_, ...args: unknown[]) => {
window.ipcRenderer.on(event, (event, ...args: unknown[]) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
listener(...args);
listener(event, ...args);
});
},
removeAllListeners: (event: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/music-player.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ tp-yt-paper-item.ytmusic-guide-entry-renderer::before {
tp-yt-iron-dropdown,
tp-yt-paper-dialog {
app-region: no-drag;
}
}
3 changes: 2 additions & 1 deletion src/plugins/sponsorblock/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import is from 'electron-is';
import { IpcRendererEvent } from 'electron';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-unused-vars> reported by reviewdog 🐶
'IpcRendererEvent' is defined but never used.


import { createPlugin } from '@/utils';

Expand Down Expand Up @@ -105,7 +106,7 @@ export default createPlugin({
},
resetSegments: () => (currentSegments = []),
start({ ipc }) {
ipc.on('sponsorblock-skip', (segments: Segment[]) => {
ipc.on('sponsorblock-skip', (_event: unknown, segments: Segment[]) => {
currentSegments = segments;
});
},
Expand Down
Loading