Simplify example code
This commit is contained in:
parent
e885e33b75
commit
87565f4c84
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue