Skip to content

Commit

Permalink
fix: Fix mode buttons visibility for Foundry v10 (arcanistzed#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoe committed Nov 21, 2022
1 parent 37e2a17 commit 7bce13f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/ctg.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ export default class Ctg {
/** Create container for mode selection boxes */
const container = document.createElement("ul");
container.id = "ctg-modeContainer";
html.querySelector("#combat > #combat-round")?.after(container);
const combatRoundContainer =
html.querySelector('.combat-sidebar .combat-tracker-header') // v10
|| html.querySelector('#combat > #combat-round') // v9
combatRoundContainer?.after(container);

// For each mode that exists
Ctg.MODES.forEach(mode => {
Expand Down

0 comments on commit 7bce13f

Please sign in to comment.