mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: corrected the ipcMain import path (#40794)
Update tutorial-3-preload.md corrected the import path for ipcMain Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Nikhil Simon Toppo <nikhilsimontoppo@gmail.com>
This commit is contained in:
@@ -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