mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
Simplify example code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user