Skip to content

Commit

Permalink
More feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbinnie committed Nov 20, 2023
1 parent e7a06fa commit ccf282b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/preload/externalAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
LEGACY_OFF,
} from 'common/communication';

contextBridge.exposeInMainWorld('desktopAPI', {
const desktopAPI: DesktopAPI = {

// Initialization
isDev: () => ipcRenderer.invoke(GET_IS_DEV_MODE),
Expand Down Expand Up @@ -91,7 +91,8 @@ contextBridge.exposeInMainWorld('desktopAPI', {

// Utility
unregister: (channel) => ipcRenderer.removeAllListeners(channel),
} as DesktopAPI);
};
contextBridge.exposeInMainWorld('desktopAPI', desktopAPI);

// Specific info for the testing environment
if (process.env.NODE_ENV === 'test') {
Expand Down

0 comments on commit ccf282b

Please sign in to comment.