chore: reomve useless code

This commit is contained in:
jindaxuan 2022-03-29 18:04:34 +08:00 committed by GitHub
parent 15f5db0ce7
commit 3efd8461a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())