From ee9ac66c083a920d7c1d0167cc6465d835957d41 Mon Sep 17 00:00:00 2001 From: Daniel Thorp Date: Wed, 14 Sep 2022 14:13:02 -0400 Subject: [PATCH 1/3] fix: restore compatibility with < v10 --- js/find-the-culprit.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/find-the-culprit.js b/js/find-the-culprit.js index 8fa54d7..e32547b 100644 --- a/js/find-the-culprit.js +++ b/js/find-the-culprit.js @@ -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); From 20e7f3e37440c9f81c42ae86c31ee49b1ed1fdcb Mon Sep 17 00:00:00 2001 From: Daniel Thorp Date: Wed, 14 Sep 2022 14:14:22 -0400 Subject: [PATCH 2/3] chore: update manifest version --- module.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.json b/module.json index ab8b4f7..cff644b 100644 --- a/module.json +++ b/module.json @@ -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" @@ -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 } From d5c784c17d5be3dd65730f2aa6f86862fc635550 Mon Sep 17 00:00:00 2001 From: Daniel Thorp Date: Wed, 14 Sep 2022 14:15:52 -0400 Subject: [PATCH 3/3] docs: update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d27005d..bf2ba82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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