From 4e2990d3aac52c7b6da65eb5122956d12d70007f Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Mon, 1 Jul 2019 16:53:07 -0700 Subject: [PATCH] docs: make the dialog example work out of the box on all 3 platforms (#19055) --- docs/api/dialog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/dialog.md b/docs/api/dialog.md index 1f4a0c97e8..ac526fa50c 100644 --- a/docs/api/dialog.md +++ b/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