📝 Some consistency
This commit is contained in:
parent
eeb5845aac
commit
8dd44f66ca
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ class. It is only available in the main process.
|
|||
// renderer process:
|
||||
const { BrowserWindow } = require('electron')
|
||||
|
||||
const myWindow = new BrowserWindow()
|
||||
const win = new BrowserWindow()
|
||||
```
|
||||
|
||||
Since communication between the processes is possible, a renderer process
|
||||
|
@ -82,7 +82,7 @@ we'd use the remote as a middle-man:
|
|||
const { remote } = require('electron')
|
||||
const { BrowserWindow } = remote
|
||||
|
||||
const myWindow = new BrowserWindow()
|
||||
const win = new BrowserWindow()
|
||||
```
|
||||
|
||||
## Using Node.js APIs
|
||||
|
|
|
@ -26,7 +26,7 @@ See the [API documentation for more options and modes][setprogressbar].
|
|||
|
||||
```javascript
|
||||
const { BrowserWindow } = require('electron')
|
||||
const myWindow = new BrowserWindow()
|
||||
const win = new BrowserWindow()
|
||||
|
||||
win.setProgressBar(0.5)
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue