📝 Match destructuring style

[ci skip]
This commit is contained in:
Plusb Preco 2016-05-11 01:26:38 +09:00
parent 5787bb0226
commit 4d7296e1db
24 changed files with 37 additions and 39 deletions

View file

@ -6,7 +6,8 @@ An example of showing a dialog to select multiple files and directories:
```javascript
var win = ...; // BrowserWindow in which to show the dialog
const { dialog } = require('electron');
const {dialog} = require('electron');
console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', 'multiSelections' ]}));
```
@ -14,7 +15,7 @@ The Dialog is opened from Electron's main thread. If you want to use the dialog
object from a renderer process, remember to access it using the remote:
```javascript
const { dialog } = require('electron').remote;
const {dialog} = require('electron').remote;
```
## Methods