chore: optimize code
This commit is contained in:
1 parent
b5a442d3b0
commit
1509250f92
2 files changed
+13
-12
No files matched your search
+2
-2
@@ -31,9 +31,9 @@ async function mainWin() {
|
||||
}
|
||||
|
||||
// Test active push message to Renderer-process.
|
||||
setInterval(() => {
|
||||
win.webContents.on('did-finish-load', () => {
|
||||
win?.webContents.send('main-process-message', (new Date).toLocaleString())
|
||||
}, 999)
|
||||
})
|
||||
}
|
||||
|
||||
app.whenReady().then(mainWin)
|
||||
|
||||
Reference in new issue
Block a user