Simplify example code

This commit is contained in:
Ryohei Ikegami 2017-03-28 19:50:45 +09:00
parent e885e33b75
commit 87565f4c84

View file

@ -68,8 +68,7 @@ mainWindow.webContents.on('new-window', (event, url, frameName, disposition, opt
width: 100, width: 100,
height: 100 height: 100
}) })
modal = new BrowserWindow(options) event.newGuest = new BrowserWindow(options)
event.newGuest = modal
} }
}) })
``` ```