change path parameter to object

This commit is contained in:
RobAley 2019-02-25 16:14:49 +00:00 committed by GitHub
parent edca7a7a62
commit b83090d412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@
// Every time the user clicks on a context menu button, the menu
// is created from scratch and this callback is called.
onCreateMenu : (items, path) => {
onCreateMenu : (items, {path}) => {
console.log(items); // log the current items for inspection