Fix the deprecation warning in v14 & hide the context menu options in v13 correctly
This commit is contained in:
parent
b36fe27182
commit
500eabc755
2 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ export function createContextMenuOption(option) {
|
|||
if (game.release.generation < 14) {
|
||||
return {
|
||||
name: option.label,
|
||||
visible: option.condition,
|
||||
condition: option.visible,
|
||||
callback: (target) => option.onClick(null, target),
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue