docs: corrected the ipcMain import path (#40764)
Update tutorial-3-preload.md corrected the import path for ipcMain
This commit is contained in:
parent
95d094d75b
commit
ab2a4fd836
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ loading the HTML file so that the handler is guaranteed to be ready before
|
|||
you send out the `invoke` call from the renderer.
|
||||
|
||||
```js {1,15} title="main.js"
|
||||
const { app, BrowserWindow, ipcMain } = require('electron')
|
||||
const { app, BrowserWindow, ipcMain } = require('electron/main')
|
||||
const path = require('node:path')
|
||||
|
||||
const createWindow = () => {
|
||||
|
|
Loading…
Reference in a new issue