mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -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) => {
|
||||
// For example...
|
||||
childWindow.webContents('will-navigate', (e) => {
|
||||
childWindow.webContents.on('will-navigate', (e) => {
|
||||
e.preventDefault()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user