Skip to content

Commit

Permalink
Possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Dec 20, 2023
1 parent eba84fe commit 0ffcf6f
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions scripts/helpers/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0ffcf6f

Please sign in to comment.