Skip to content

Commit

Permalink
fix ReferenceError on changeViewMode (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonLenclos authored and Azgaar committed Feb 4, 2021
1 parent 7ac69bb commit ae58634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ document.getElementById("mapToLoad").addEventListener("change", function() {

// View mode
viewMode.addEventListener("click", changeViewMode);
function changeViewMode() {
function changeViewMode(event) {
const button = event.target;
if (button.tagName !== "BUTTON") return;
const pressed = button.classList.contains("pressed");
Expand Down

0 comments on commit ae58634

Please sign in to comment.