Use webContents.mainFrame.on() in MessagePort tutorial
docs: use webContents.mainFrame.on() in MessagePort tutorial (#35824)
Use webContents.mainFrame.on() in MessagePort tutorialdocsuse webcontents mainframe messageport tutorial
Committed by miniak
commit message
docs: use webContents.mainFrame.on() in MessagePort tutorial (#35824)
* docs: use webContents.mainFrame.on() in MessagePort tutorial
* Update docs/tutorial/message-ports.md
Co-authored-by: Samuel Maddock <[email protected]>
Co-authored-by: Samuel Maddock <[email protected]>Editor assessment
Strong header: `docs` fits, the subject names the exact API change (`webContents.mainFrame.on()`), the tutorial affected, and stays under 72 characters — precise enough that the log entry alone tells the story. The body is where polish is lost: it is an accumulation of pull-request fragments, including `Co-authored-by:` lines duplicated as plain body text when they should live as git trailers. The actual content — why mainFrame.on replaced the previous pattern — is absent. Trimming to the substantive change would make this exemplary.