Skip to content

Commit

Permalink
Proper loader icon
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed Jun 4, 2024
1 parent 785dc15 commit 4969959
Show file tree
Hide file tree
Showing 2 changed files with 353 additions and 135 deletions.
6 changes: 4 additions & 2 deletions src/preload/bindings.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { ipcRenderer, IpcRendererEvent } from "electron";

export const api = {
on: (channel: string, listener: (...args: unknown[]) => void) => {
ipcRenderer.on(channel, (_event: IpcRendererEvent, ...args: unknown[]) => {
/* eslint-disable @typescript-eslint/no-explicit-any */
on: (channel: string, listener: (...args: any[]) => void) => {
/* eslint-disable @typescript-eslint/no-explicit-any */
ipcRenderer.on(channel, (_event: IpcRendererEvent, ...args: any[]) => {
listener(...args);
});
},
Expand Down
Loading

0 comments on commit 4969959

Please sign in to comment.