fix electron api callbacks

This commit is contained in:
Evan Simkowitz 2024-06-19 10:52:05 -07:00
parent 15681ffa1a
commit 9c8ab4f555
No known key found for this signature in database

View File

@ -264,12 +264,12 @@ function createWindow(client: Client, waveWindow: WaveWindow): Electron.BrowserW
return win;
}
electron.ipcMain.on("isDev", () => {
return isDev;
electron.ipcMain.on("isDev", (event) => {
event.returnValue = isDev;
});
electron.ipcMain.on("isDevServer", () => {
return isDevServer;
electron.ipcMain.on("isDevServer", (event) => {
event.returnValue = isDevServer;
});
(async () => {