Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Feb 11, 2025
1 parent 91ea130 commit 7f4f6bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contextBridge.exposeInMainWorld('electron', {
getScheduledRewards: () =>
ipcRenderer.invoke('checker:getScheduledRewards'),

config: {
checkerConfig: {
getOnboardingCompleted: () =>
ipcRenderer.invoke('checker:getOnboardingCompleted'),
setOnboardingCompleted: () =>
Expand Down Expand Up @@ -50,7 +50,7 @@ contextBridge.exposeInMainWorld('electron', {
saveModuleLogsAs: () => ipcRenderer.invoke('checker:saveModuleLogsAs'),
checkForUpdates: () => ipcRenderer.invoke('checker:checkForUpdates')
},
events: {
checkerEvents: {
onActivityLogged: (/** @type {(value: Activity) => void} */ callback) => {
/** @type {(event: IpcRendererEvent, ...args: any[]) => void} */
const listener = (_event, activities) => callback(activities)
Expand Down

0 comments on commit 7f4f6bd

Please sign in to comment.