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

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