fixed typo in docs/api/window-open.md (#28117)

This commit is contained in:
Binyamin Aron Green
2021-03-12 20:47:33 -05:00
committed by GitHub
parent b8926cb4e8
commit a442f11574

View File

@@ -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()
})
})