Skip to content

Commit

Permalink
fixup: [spec] npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Dec 8, 2022
1 parent 831f523 commit 32277ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2528,7 +2528,10 @@
// There aren't many headings, so just expand them all by default.
document.addEventListener("DOMContentLoaded", function() {
try {
document.querySelectorAll("#menu-toc li").forEach(el => el.click());
const menuItems = Array.from(document.querySelectorAll("#menu-toc li"));
if (!menuItems.some(el => el.classList.has("active"))) {
menuItems.forEach(el => el.classList.add("active"));
}
} catch (ex) {}
});
</script>
Expand Down

0 comments on commit 32277ed

Please sign in to comment.