Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit a0a1766

Browse files
authored
Send log event to menubar IPC (#29)
1 parent 49e0f04 commit a0a1766

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/api/debug.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ router.post('/log', (req, res) => {
1111
window.webContents.send('log', {level, message, context})
1212
})
1313

14+
if (state.activeMenuBar?.window) {
15+
state.activeMenuBar.window.webContents.send('log', {level, message, context})
16+
}
17+
1418
res.sendStatus(200)
1519
})
1620

0 commit comments

Comments
 (0)