Skip to content

Commit 1e94458

Browse files
committed
11.06 changes
1 parent 80a9419 commit 1e94458

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

module.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Monk's Enhanced Journal",
33
"description": "Treat the journal like it's going to be popped out and used as a digital guide book. Add extra information to summarize an encounter. Show summaries of people and places. Allow for bookmarking of commonly used pages",
4-
"version": "11.05",
4+
"version": "11.06",
55
"authors": [
66
{
77
"name": "IronMonk",
@@ -95,7 +95,7 @@
9595
"css/apsjournal.css"
9696
],
9797
"url": "https://github.com/ironmonk88/monks-enhanced-journal",
98-
"download": "https://github.com/ironmonk88/monks-enhanced-journal/archive/11.05.zip",
98+
"download": "https://github.com/ironmonk88/monks-enhanced-journal/archive/11.06.zip",
9999
"manifest": "https://github.com/ironmonk88/monks-enhanced-journal/releases/latest/download/module.json",
100100
"bugs": "https://github.com/ironmonk88/monks-enhanced-journal/issues",
101101
"allowBugReporter": true,

monks-enhanced-journal.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -2471,9 +2471,15 @@ export class MonksEnhancedJournal {
24712471
*/
24722472
if (!game.modules.get('monks-combat-details')?.active) {
24732473
patchFunc("Draggable.prototype._onDragMouseUp", async function (wrapped, ...args) {
2474-
for (const cls of this.app.constructor._getInheritanceChain()) {
2475-
Hooks.callAll(`dragEnd${cls.name}`, this.app, this.app.position);
2476-
}
2474+
try {
2475+
if (this.app.constructor._getInheritanceChain) {
2476+
for (const cls of this.app.constructor._getInheritanceChain()) {
2477+
Hooks.callAll(`dragEnd${cls.name}`, this.app, this.app.position);
2478+
}
2479+
} else {
2480+
Hooks.callAll(`dragEnd${this.app.constructor.name}`, this.app, this.app.position);
2481+
}
2482+
} catch (e) { }
24772483
return wrapped(...args);
24782484
});
24792485
}

0 commit comments

Comments
 (0)