From a50d46a9e5cb49facb2dec96bf54e859c36d7abb Mon Sep 17 00:00:00 2001 From: cadowtin Date: Thu, 15 Aug 2024 01:28:21 -0500 Subject: [PATCH] Fix for API --- scripts/module.js | 6 ++++-- scripts/settings.js | 6 ++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/module.js b/scripts/module.js index c5392a0..b5716da 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -21,8 +21,10 @@ Hooks.once("ready", async () => { // Register the listener for our module socket. // Note that this is not entered on the origin client of any broadcast. legacySettingsTestAndMessage(); - game.REDY.api = { - openSettingsMenu: settingsMenu, + game.REDY = { + api: { + openSettingsMenu: settingsMenu, + }, }; game.socket.on(`module.${MODULE_ID}`, ({ type, payload }) => { if (type === "tokenHealthUpdate") handleTokenHealthUpdate(...payload); diff --git a/scripts/settings.js b/scripts/settings.js index 413a792..9b2cf26 100644 --- a/scripts/settings.js +++ b/scripts/settings.js @@ -147,15 +147,13 @@ export function resolvePlayerWorldSetting(settingPath) { export function renderSettingsConfig(_, html) { // Find the tab related to the module const moduleTab = html.find(`.tab[data-tab=${MODULE_ID}]`); - const localizedName = "SETT Menu"; /*game.i18n.localize( - MODULE_ID + ".module-settings.button" - );*/ + const local = "SETT Menu"; moduleTab .find(`[name="pf2e-reactive-token-ring.auto-coloring.percent-color"]`) .closest(".form-group").before(` `);