chore: test Mapi-process active send message to Renderer-process.
This commit is contained in:
1 parent
7f6df58801
commit
c7118b75e6
2 files changed
+10
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user