mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Add ContextMenu options fallback
This commit is contained in:
parent
8420c707f7
commit
5732381da6
1 changed files with 2 additions and 2 deletions
|
|
@ -58,11 +58,11 @@ export default class DHContextMenu extends foundry.applications.ux.ContextMenu {
|
|||
* @param {ContextMenuEntry[]} menuItems - An Array of entries to display in the menu
|
||||
* @param {ContextMenuOptions} [options] - Additional options to configure the context menu.
|
||||
*/
|
||||
constructor(container, selector, menuItems, options) {
|
||||
constructor(container, selector, menuItems, options={}) {
|
||||
super(container, selector, menuItems, options);
|
||||
|
||||
/** @deprecated since v13 until v15 */
|
||||
this.#jQuery = options.jQuery;
|
||||
this.#jQuery = !!options.jQuery;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue