🔧Chore: IPC 通信
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { app, BrowserWindow } = require("electron");
|
||||
const { app, BrowserWindow, ipcMain } = require("electron");
|
||||
|
||||
const path = require("node:path");
|
||||
|
||||
@@ -15,6 +15,7 @@ const createWindow = () => {
|
||||
};
|
||||
|
||||
app.whenReady().then(() => {
|
||||
ipcMain.handle("ping", () => "pong");
|
||||
createWindow();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user