Skip to content

Commit

Permalink
fix: startDrag params type incorrect (#31083)
Browse files Browse the repository at this point in the history
Co-authored-by: Black-Hole1 <158blackhole@gmail.com>
  • Loading branch information
trop[bot] and BlackHole1 committed Sep 23, 2021
1 parent 71fcb8d commit 6919520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/api/web-contents.md
Expand Up @@ -1827,7 +1827,8 @@ End subscribing for frame presentation events.
#### `contents.startDrag(item)`

* `item` Object
* `file` String[] | String - The path(s) to the file(s) being dragged.
* `file` String - The path to the file being dragged.
* `files` String[] (optional) - The paths to the files being dragged. (`files` will override `file` field)
* `icon` [NativeImage](native-image.md) | String - The image must be
non-empty on macOS.

Expand Down

0 comments on commit 6919520

Please sign in to comment.