Fix actor image editing by removing static modifier from _onEditImage method
This commit is contained in:
parent
f643999573
commit
bdfba8cacc
1 changed files with 2 additions and 3 deletions
|
@ -682,11 +682,11 @@ export class DS4ActorSheet extends foundry.applications.api.HandlebarsApplicatio
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle editing the actor's portrait image
|
* Handle editing the actor's image
|
||||||
* @param {Event} event - The triggering event
|
* @param {Event} event - The triggering event
|
||||||
* @param {HTMLElement} target - The target element
|
* @param {HTMLElement} target - The target element
|
||||||
*/
|
*/
|
||||||
static async _onEditImage(event, target) {
|
async _onEditImage(event, target) {
|
||||||
const field = target.dataset.field || "img";
|
const field = target.dataset.field || "img";
|
||||||
const current = foundry.utils.getProperty(this.document, field);
|
const current = foundry.utils.getProperty(this.document, field);
|
||||||
|
|
||||||
|
@ -695,7 +695,6 @@ export class DS4ActorSheet extends foundry.applications.api.HandlebarsApplicatio
|
||||||
current: current,
|
current: current,
|
||||||
callback: (path) => this.document.update({ [field]: path }),
|
callback: (path) => this.document.update({ [field]: path }),
|
||||||
});
|
});
|
||||||
|
|
||||||
return fp.browse();
|
return fp.browse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue