mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
make main process example shorter
This commit is contained in:
@@ -159,11 +159,7 @@ project/
|
||||
```js
|
||||
// main process: main/index.js
|
||||
const { app } = require('electron')
|
||||
app.on('ready', () => {
|
||||
|
||||
// ...
|
||||
|
||||
})
|
||||
app.on('ready', () => {/* ... */})
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user