Skip to content

Commit

Permalink
Fixes #372
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Jun 2, 2023
1 parent 05a4e15 commit f079bde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Item Piles Changelog

## Version 2.6.15

- Fixed critical issue preventing opening most documents, whoops

## Version 2.6.14

- Added `game.itempiles.API.unrenderItemPileInterface` which can be used to remotely close item pile interfaces for players
Expand Down
1 change: 1 addition & 0 deletions src/libwrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function registerLibwrappers() {

libWrapper.register(CONSTANTS.MODULE_NAME, overrideMethod, function (wrapped, event) {
event.preventDefault();
const element = event.currentTarget;
if (!(this instanceof Compendium)) {
const documentId = element.parentElement.dataset.documentId;
const document = this.constructor.collection.get(documentId);
Expand Down

0 comments on commit f079bde

Please sign in to comment.