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;
|
return win;
|
||||||
}
|
}
|
||||||
|
|
||||||
electron.ipcMain.on("isDev", () => {
|
electron.ipcMain.on("isDev", (event) => {
|
||||||
return isDev;
|
event.returnValue = isDev;
|
||||||
});
|
});
|
||||||
|
|
||||||
electron.ipcMain.on("isDevServer", () => {
|
electron.ipcMain.on("isDevServer", (event) => {
|
||||||
return isDevServer;
|
event.returnValue = isDevServer;
|
||||||
});
|
});
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user