Skip to content

Commit

Permalink
refactor: Rename button id
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarKlintrot committed Jul 25, 2024
1 parent 302b6a2 commit 798c7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1>MyThrow.xyz</h1>
<footer>
<button type="button" id="start-btn">set start</button>
<button type="button" id="save-btn">save throw</button>
<button type="button" id="reset-btn">reset all</button>
<button type="button" id="reset-all-btn">reset all</button>
<button type="button" id="unit-btn">...</button>
</footer>
</div>
Expand Down Expand Up @@ -584,7 +584,7 @@ <h1>MyThrow.xyz</h1>
document.querySelector("#unit-btn").addEventListener("click", toggleUnit);

document
.querySelector("#reset-btn")
.querySelector("#reset-all-btn")
.addEventListener("click", e => state.reset());

document.querySelector("#save-btn").addEventListener("click", saveThrow);
Expand Down

0 comments on commit 798c7de

Please sign in to comment.