mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use once for 'ready-to-show'
This commit is contained in:
@@ -36,7 +36,7 @@ will have no visual flash:
|
||||
|
||||
```javascript
|
||||
let win = new BrowserWindow({show: false})
|
||||
win.on('ready-to-show', () => {
|
||||
win.once('ready-to-show', () => {
|
||||
win.show()
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user