Browse Source

Simplify example code

Ryohei Ikegami 8 years ago
parent
commit
87565f4c84
1 changed files with 1 additions and 2 deletions
  1. 1 2
      docs/api/window-open.md

+ 1 - 2
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)
   }
 })
 ```