Allow event listeners for item sheets when the item is embedded

This commit is contained in:
Oliver-Akins 2024-01-12 23:22:58 -07:00
parent 10dcec3bd7
commit 134b13756a
3 changed files with 0 additions and 3 deletions

View file

@ -15,7 +15,6 @@ export class AspectSheet extends ItemSheet {
activateListeners(html) {
super.activateListeners(html);
if (this.document.isEmbedded) return;
if (!this.isEditable) return;
console.debug(`.dungeon | Adding event listeners for Item: ${this.id}`);
};

View file

@ -14,7 +14,6 @@ export class GenericItemSheet extends ItemSheet {
activateListeners(html) {
super.activateListeners(html);
if (this.document.isEmbedded) return;
if (!this.isEditable) return;
console.debug(`.dungeon | Adding event listeners for Generic Item: ${this.id}`);
};

View file

@ -17,7 +17,6 @@ export class SpellSheet extends GenericItemSheet {
activateListeners(html) {
super.activateListeners(html);
if (this.document.isEmbedded) return;
if (!this.isEditable) return;
console.debug(`.dungeon | Adding event listeners for Generic Item: ${this.id}`);
};