Skip to content

Commit

Permalink
docs: fix did-frame-navigate example in webFrameMain docs (#34446)
Browse files Browse the repository at this point in the history
docs: fix did-frame-navigate example in webFrameMain docs

Co-authored-by: Will Anderson <will@itsananderson.com>
  • Loading branch information
trop[bot] and itsananderson committed Jun 6, 2022
1 parent d20e547 commit cbe2a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/web-frame-main.md
Expand Up @@ -16,7 +16,7 @@ win.loadURL('https://twitter.com')

win.webContents.on(
'did-frame-navigate',
(event, url, isMainFrame, frameProcessId, frameRoutingId) => {
(event, url, httpResponseCode, httpStatusText, isMainFrame, frameProcessId, frameRoutingId) => {
const frame = webFrameMain.fromId(frameProcessId, frameRoutingId)
if (frame) {
const code = 'document.body.innerHTML = document.body.innerHTML.replaceAll("heck", "h*ck")'
Expand Down

0 comments on commit cbe2a45

Please sign in to comment.