Skip to content

Commit

Permalink
ipc:events
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddybi committed Mar 5, 2024
1 parent 045ae90 commit 598f0af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,13 @@ ipcMain.handle('logout', async (event, ogLink) => {
return true;
});

ipcMain.handle('events', async (event, args) => {
const { name, data } = args || {};
if(!name || !data) return false;
appEvents.emit(name, data);
return true;
});

ipcMain.handle('my-invokable-ipc', async (event, ...args) => {
const state = await getState();
// const browser = await getBrowser();
Expand Down

0 comments on commit 598f0af

Please sign in to comment.