COrrection sur tokenizer
Release Creation / build (release) Successful in 1m4s

This commit is contained in:
2026-06-03 20:44:43 +02:00
parent 93f07adcee
commit 681eb42831
60 changed files with 26 additions and 18 deletions
@@ -121,13 +121,15 @@ export default class MournbladeItemSheet extends HandlebarsApplicationMixin(foun
* Handle editing the item image
* @param {Event} event - The triggering event
*/
static async #onEditImage(event) {
static async #onEditImage(event, target) {
event.preventDefault()
const attr = target.dataset.edit || "img"
const current = foundry.utils.getProperty(this.document, attr) ?? this.document.img
const filePicker = new FilePicker({
type: "image",
current: this.document.img,
current,
callback: (path) => {
this.document.update({ img: path })
this.document.update({ [attr]: path })
},
})
filePicker.browse()