From fada700bec0aab1e00975db1252415f7b0f6f29d Mon Sep 17 00:00:00 2001 From: arcanist Date: Thu, 15 Sep 2022 22:18:55 -0400 Subject: [PATCH] fix: restore v10 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This time I tested it properly 🤦 Signed-off-by: arcanist --- CHANGELOG.md | 6 +----- js/find-the-culprit.js | 8 ++++---- module.json | 4 ++-- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf2ba82..de123e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/js/find-the-culprit.js b/js/find-the-culprit.js index e32547b..ce69116 100644 --- a/js/find-the-culprit.js +++ b/js/find-the-culprit.js @@ -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); diff --git a/module.json b/module.json index cff644b..b103b38 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.3", + "version": "1.4.4", "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.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 }