From 87565f4c8452486195a6582f4721532a2f82e6d9 Mon Sep 17 00:00:00 2001 From: Ryohei Ikegami Date: Tue, 28 Mar 2017 19:50:45 +0900 Subject: [PATCH] Simplify example code --- docs/api/window-open.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) } }) ```