diff --git a/docs/api/window-open.md b/docs/api/window-open.md index 308ab9c73a12..79158b292a74 100644 --- a/docs/api/window-open.md +++ b/docs/api/window-open.md @@ -68,8 +68,7 @@ mainWindow.webContents.on('new-window', (event, url, frameName, disposition, opt width: 100, height: 100 }) - modal = new BrowserWindow(options) - event.newGuest = modal + event.newGuest = new BrowserWindow(options) } }) ```