chore: test Mapi-process active send message to Renderer-process.

This commit is contained in:
草鞋没号 committed 2021-11-25 19:39:30 +08:00
1 parent 7f6df58801
commit c7118b75e6
2 files changed
+10 -1

No files matched your search

+5
View File
@@ -29,6 +29,11 @@ async function mainWin() {
win.maximize()
win.webContents.openDevTools()
}
// Test active push message to Renderer-process.
setInterval(() => {
win?.webContents.send('main-process-message', (new Date).toLocaleString())
}, 999)
}
app.whenReady().then(mainWin)