forked from public/foundryvtt-reve-de-dragon
Autoformat
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user