mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
fix electron api callbacks
This commit is contained in:
parent
15681ffa1a
commit
9c8ab4f555
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user