initial playback notification implementation

This commit is contained in:
Core 2021-12-13 14:08:06 +00:00
parent 9d7251f20c
commit bb431c7282
2 changed files with 23 additions and 9 deletions

View file

@ -80,7 +80,12 @@ const CiderBase = {
// Register listeners on Window to track size and position of the Window.
mainWindowState.manage(win);
// IPC stuff
// IPC stuff (senders)
ipcMain.once("cider-platform", (event) => {
event.returnValue = process.platform
})
// IPC stuff (listeners)
ipcMain.on('close', () => { // listen for close event
win.close();