From 5732381da6ecd63f983d79badc4f465af20b7e15 Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Mon, 8 Sep 2025 18:21:40 +0200 Subject: [PATCH] Add ContextMenu options fallback --- module/applications/ux/contextMenu.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/applications/ux/contextMenu.mjs b/module/applications/ux/contextMenu.mjs index 09454848..d8938c84 100644 --- a/module/applications/ux/contextMenu.mjs +++ b/module/applications/ux/contextMenu.mjs @@ -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; } /**