Browse Source

docs: fix `did-frame-navigate` example in webFrameMain docs (#34444)

docs: fix did-frame-navigate example in webFrameMain docs

Co-authored-by: Will Anderson <[email protected]>
trop[bot] 2 years ago
parent
commit
c050839202
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/api/web-frame-main.md

+ 1 - 1
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")'