Skip to content

Commit

Permalink
Merge pull request #30 from arcanistzed/master
Browse files Browse the repository at this point in the history
Restore compatibility with versions prior to v10
  • Loading branch information
Moerill authored Sep 14, 2022
2 parents 0024a84 + d5c784c commit a4c45a1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.4.3

- Restore compatibility with versions prior to V10

# v1.4.1

- Now compatible with FVTT v10, thanks to @arcanist
Expand Down
10 changes: 6 additions & 4 deletions js/find-the-culprit.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ function registerSetting() {
}

// Temporarily required by foundryvtt/foundryvtt#7740
Hooks.on("setup", () => {
game.settings.settings.get(`core.${ModuleManagement.CONFIG_SETTING}`).onChange =
foundry.utils.debouncedReload ?? window.location.reload;
});
if (game.release?.generation >= 10) {
Hooks.on("setup", () => {
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.2",
"version": "1.4.3",
"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.2/v1.4.2.zip",
"download": "https://github.com/Moerill/fvtt-find-the-culprit/releases/download/v1.4.3/v1.4.3.zip",
"protected": false
}

0 comments on commit a4c45a1

Please sign in to comment.