Skip to content

Commit

Permalink
fix: restore v10 compatibility
Browse files Browse the repository at this point in the history
This time I tested it properly 🤦

Signed-off-by: arcanist <arcanistzed@gmail.com>
  • Loading branch information
arcanistzed committed Sep 16, 2022
1 parent a4c45a1 commit fada700
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 1 addition & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# v1.4.3

- Restore compatibility with versions prior to V10

# v1.4.1
# v1.4.4

- Now compatible with FVTT v10, thanks to @arcanist

Expand Down
8 changes: 4 additions & 4 deletions js/find-the-culprit.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ function registerSetting() {
}

// Temporarily required by foundryvtt/foundryvtt#7740
if (game.release?.generation >= 10) {
Hooks.on("setup", () => {
Hooks.on("setup", () => {
if (game.release?.generation >= 10) {
game.settings.settings.get(`core.${ModuleManagement.CONFIG_SETTING}`).onChange =
foundry.utils.debouncedReload ?? window.location.reload;
});
}
}
});

Hooks.on("renderModuleManagement", onRenderModuleManagement);

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"bugs": "https://github.com/Moerill/fvtt-find-the-culprit/issues",
"changelog": "https://github.com/Moerill/fvtt-find-the-culprit/blob/master/CHANGELOG.md",
"flags": {},
"version": "1.4.3",
"version": "1.4.4",
"compatibility": {
"minimum": "9",
"verified": "10"
Expand All @@ -32,6 +32,6 @@
"dependencies": [],
"socket": false,
"manifest": "https://raw.githubusercontent.com/Moerill/fvtt-find-the-culprit/master/module.json",
"download": "https://github.com/Moerill/fvtt-find-the-culprit/releases/download/v1.4.3/v1.4.3.zip",
"download": "https://github.com/Moerill/fvtt-find-the-culprit/releases/download/v1.4.4/v1.4.4.zip",
"protected": false
}

0 comments on commit fada700

Please sign in to comment.