From 0ffcf6f9300e7aff8fbf866accda250c88c6c935 Mon Sep 17 00:00:00 2001 From: cadowtin Date: Wed, 20 Dec 2023 16:33:06 -0600 Subject: [PATCH] Possible fix --- scripts/helpers/misc.js | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/scripts/helpers/misc.js b/scripts/helpers/misc.js index 0c65444..419e7f5 100644 --- a/scripts/helpers/misc.js +++ b/scripts/helpers/misc.js @@ -17,22 +17,18 @@ export function debugLog(data, context = "") { * @param {JQuery} html */ export async function renderTokenConfigHandler(tokenConfig, html) { - injectConfig.inject( - tokenConfig, - html, - { - moduleId: MODULE_ID, - inject: `.tab[data-tab="character"]`, - "rotationOffset": { - type: "number", - label: game.i18n.localize("pf2e-rpg-numbers.options.rotationOffset"), - placeholder: 0, - min: 0, - max: 360, - } - }, - tokenConfig.object - ); + injectConfig.quickInject([{documentName: "Token"}], + { + moduleId: MODULE_ID, + inject: `.tab[data-tab="character"]`, + "rotationOffset": { + type: "number", + label: game.i18n.localize("pf2e-rpg-numbers.options.rotationOffset"), + default: 0, + min: 0, + max: 360, + } + }); // const posTab = html.find(`.tab[data-tab="character"]`); // if (tokenConfig.options.sheetConfig) {