docs: make the dialog example work out of the box on all 3 platforms (#19055)

This commit is contained in:
Samuel Attard 2019-07-01 16:53:07 -07:00 committed by GitHub
parent 21d04ed3f4
commit 4e2990d3aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,11 +4,11 @@
Process: [Main](../glossary.md#main-process) Process: [Main](../glossary.md#main-process)
An example of showing a dialog to select multiple files and directories: An example of showing a dialog to select multiple files:
```javascript ```javascript
const { dialog } = require('electron') const { dialog } = require('electron')
console.log(dialog.showOpenDialog({ properties: ['openFile', 'openDirectory', 'multiSelections'] })) console.log(dialog.showOpenDialog({ properties: ['openFile', 'multiSelections'] }))
``` ```
The Dialog is opened from Electron's main thread. If you want to use the dialog The Dialog is opened from Electron's main thread. If you want to use the dialog