From 3efd8461a369775dff39cec1debc95943db4c3b5 Mon Sep 17 00:00:00 2001 From: jindaxuan <553038034@qq.com> Date: Tue, 29 Mar 2022 18:04:34 +0800 Subject: [PATCH] chore: reomve useless code --- packages/main/index.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/main/index.ts b/packages/main/index.ts index 4572726..d382b75 100644 --- a/packages/main/index.ts +++ b/packages/main/index.ts @@ -36,17 +36,6 @@ async function createWindow() { win.webContents.openDevTools() } - // Communicate with the Renderer-process. - win.webContents.on('ipc-message', (_, channel, ...args) => { - switch (channel) { - case 'app.getPath': - win?.webContents.send('app.getPath', app.getPath(args[0])) - break - default: - break - } - }) - // Test active push message to Renderer-process win.webContents.on('did-finish-load', () => { win?.webContents.send('main-process-message', new Date().toLocaleString())