Browse Source

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

Samuel Attard 5 years ago
parent
commit
4e2990d3aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/api/dialog.md

+ 2 - 2
docs/api/dialog.md

@@ -4,11 +4,11 @@
 
 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
 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