docs: corrected the ipcMain import path (#40764)

Update tutorial-3-preload.md

corrected the import path for ipcMain
This commit is contained in:
Nikhil Simon Toppo 2023-12-20 00:00:48 +05:30 committed by GitHub
parent 95d094d75b
commit ab2a4fd836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = () => {