Skip to content

Commit

Permalink
🚀 Find the right element
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki committed Oct 13, 2024
1 parent fe76112 commit 3a7e380
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ark_nova_stats/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,16 @@ const fixPlayerOrderingInterval = setInterval(() => {
fixReplaySidebar = (intervalId) => {
// This happens when the page wrapper gets display:block attached do it,
// causing the columnar child elements to reserve the entire width of the page instead of living side-by-side.
const pageWrapper = document.getElementById("#leftright_page_wrapper");
const pageWrapper = document.getElementById("leftright_page_wrapper");
if (pageWrapper === null) {
return;
}

pageWrapper.style.display = "flex";
clearInterval(intervalId);
if (pageWrapper.style.display !== "flex") {
console.log("Setting to flex");
pageWrapper.style.display = "flex";
}
}
const fixReplaySidebarInterval = setInterval(() => {
fixReplaySidebar(fixReplaySidebarInterval);
}, 500);
}, 1000);

0 comments on commit 3a7e380

Please sign in to comment.