mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
FEAT: add _gettags and _getLabels to armor, domainCard, weapons and ActiveEffect
This commit is contained in:
parent
faa412bfc1
commit
e5c617d62e
6 changed files with 140 additions and 133 deletions
|
|
@ -237,7 +237,7 @@ export const updateActorTokens = async (actor, update) => {
|
|||
* Retrieves a Foundry document associated with the nearest ancestor element
|
||||
* that has a `data-item-uuid` attribute.
|
||||
* @param {HTMLElement} element - The DOM element to start the search from.
|
||||
* @returns {foundry.abstract.Document|null} The resolved document, or null if not found or invalid.
|
||||
* @returns {Promise<foundry.abstract.Document|null>} The resolved document, or null if not found or invalid.
|
||||
*/
|
||||
export async function getDocFromElement(element) {
|
||||
const target = element.closest('[data-item-uuid]');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue