Autoformat

This commit is contained in:
Vincent Vandemeulebrouck
2022-01-01 14:01:41 +01:00
parent 25420cb481
commit bb1d03c8a4
6 changed files with 24 additions and 23 deletions

View File

@ -243,7 +243,7 @@ export class RdDItemSheet extends ItemSheet {
async _onDragStart(event) {
console.log("_onDragStart", event);
if ( event.target.classList.contains("entity-link") ) return;
if (event.target.classList.contains("entity-link")) return;
const itemId = event.srcElement?.attributes["data-item-id"].value;
const item = this.actor.items.get(itemId);
@ -267,10 +267,10 @@ export class RdDItemSheet extends ItemSheet {
}
const allowed = Hooks.call("dropActorSheetData", this.actor, this, data);
if ( allowed === false ) return;
if (allowed === false) return;
// Handle different data types
switch ( data.type ) {
switch (data.type) {
case "Item":
return this._onDropItem(event, data);
}