docs: fix did-frame-navigate
example in webFrameMain docs (#34419)
docs: fix did-frame-navigate example in webFrameMain docs
This commit is contained in:
parent
f39c1a35e5
commit
4f99e3e46c
1 changed files with 1 additions and 1 deletions
|
@ -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")'
|
||||
|
|
Loading…
Add table
Reference in a new issue