change path parameter to object
This commit is contained in:
parent
edca7a7a62
commit
b83090d412
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue