Skip to content

Commit

Permalink
class sheet fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jessev14 committed Sep 13, 2022
1 parent b4ab69b commit 6ebda82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"id": "custom-character-sheet-sections",
"title": "Custom Character Sheet Sections",
"description": "",
"author": "enso#0361",
"authors": [
{
"name": "enso",
"discord": "enso#0361"
}
],
"version": "1.0.0",
"compatibility": {
"minimum": "10",
Expand Down
3 changes: 2 additions & 1 deletion scripts/custom-character-sheet-sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Hooks.on("renderItemSheet", (app, [html], appData) => {
<label>${game.i18n.localize(`${moduleID}.customSection`)}</label>
<input style="text-align: left;" type="text" name="flags.${moduleID}.sectionName" value="${app.object.flags[moduleID]?.sectionName || ""}" />
`;
html.querySelector(`div.item-properties`).appendChild(customSectionInput);
const itemProperties = html.querySelector(`div.item-properties`);
if (itemProperties) itemProperties.appendChild(customSectionInput);

return;
});
Expand Down

0 comments on commit 6ebda82

Please sign in to comment.