Make it so that item creation actually embeds if possible

This commit is contained in:
Oliver-Akins 2025-02-20 22:18:51 -07:00
parent 5eedea5001
commit 564e27de01

View file

@ -16,7 +16,7 @@ export function GenericAppMixin(HandlebarsApp) {
], ],
actions: { actions: {
roll: this.#rollDice, roll: this.#rollDice,
createItem: (_event, target) => { createItem(_event, target) { // uses arrow-less function for "this"
const parent = this.document; const parent = this.document;
createItemFromElement(target, { parent }); createItemFromElement(target, { parent });
}, },