mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
docs: fix shell.openPath documentation (#21641)
This commit is contained in:
committed by
John Kleinschmidt
parent
85382d8f1d
commit
181eecd03e
@@ -28,10 +28,7 @@ Show the given file in a file manager. If possible, select the file.
|
||||
|
||||
* `path` String
|
||||
|
||||
Returns `Promise<Object>` - Resolve with an object containing the following:
|
||||
|
||||
* `success` Boolean - whether or not the path was successfully opened in the desktop's default manner.
|
||||
* `errorMessage` String (optional) - The error message corresponding to the failure if a failure occurred, otherwise empty string.
|
||||
Returns `Promise<String>` - Resolves with an string containing the error message corresponding to the failure if a failure occurred, otherwise "".
|
||||
|
||||
Open the given file in the desktop's default manner.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user