Add ContextMenu options fallback

This commit is contained in:
Dapoolp 2025-09-08 18:21:40 +02:00
parent 8420c707f7
commit 5732381da6

View file

@ -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 {ContextMenuEntry[]} menuItems - An Array of entries to display in the menu
* @param {ContextMenuOptions} [options] - Additional options to configure the context 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); super(container, selector, menuItems, options);
/** @deprecated since v13 until v15 */ /** @deprecated since v13 until v15 */
this.#jQuery = options.jQuery; this.#jQuery = !!options.jQuery;
} }
/** /**