fixed typo in docs/api/window-open.md (#28117)
This commit is contained in:
parent
b8926cb4e8
commit
a442f11574
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ mainWindow.webContents.setWindowOpenHandler(({ url }) => {
|
|||
|
||||
mainWindow.webContents.on('did-create-window', (childWindow) => {
|
||||
// For example...
|
||||
childWindow.webContents('will-navigate', (e) => {
|
||||
childWindow.webContents.on('will-navigate', (e) => {
|
||||
e.preventDefault()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue