From 4f99e3e46cc09696d58b8e0aae89f2d647a79713 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sun, 5 Jun 2022 22:49:14 -0700 Subject: [PATCH] docs: fix `did-frame-navigate` example in webFrameMain docs (#34419) docs: fix did-frame-navigate example in webFrameMain docs --- docs/api/web-frame-main.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/web-frame-main.md b/docs/api/web-frame-main.md index 0190f4dbc0ac..e97041668e15 100644 --- a/docs/api/web-frame-main.md +++ b/docs/api/web-frame-main.md @@ -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")'