mirror of
https://github.com/electron/electron.git
synced 2026-01-09 07:28:12 -05:00
docs: corrected the ipcMain import path (#40764)
Update tutorial-3-preload.md corrected the import path for ipcMain
This commit is contained in:
committed by
GitHub
parent
95d094d75b
commit
ab2a4fd836
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user