Skip to content

Commit

Permalink
Declare loop variable in primaryOnDarkHandler (#5940)
Browse files Browse the repository at this point in the history
  • Loading branch information
jphamtv authored Nov 30, 2023
1 parent 4d3b941 commit 3d2b736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/design-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
})

function primaryOnDarkHandler() {
for (i = 0; i < CODE_EXAMPLES.length; i++) {
for (let i = 0; i < CODE_EXAMPLES.length; i++) {
if (CODE_EXAMPLES[i].firstChild.classList.contains("btn-primary-on-dark")) {
CODE_EXAMPLES[i].classList.add("primary-on-dark-example")
}
Expand Down

0 comments on commit 3d2b736

Please sign in to comment.