mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fixed typo in docs/api/window-open.md (#28117)
This commit is contained in:
committed by
GitHub
parent
b8926cb4e8
commit
a442f11574
@@ -90,7 +90,7 @@ mainWindow.webContents.setWindowOpenHandler(({ url }) => {
|
|||||||
|
|
||||||
mainWindow.webContents.on('did-create-window', (childWindow) => {
|
mainWindow.webContents.on('did-create-window', (childWindow) => {
|
||||||
// For example...
|
// For example...
|
||||||
childWindow.webContents('will-navigate', (e) => {
|
childWindow.webContents.on('will-navigate', (e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user