mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
fix ReferenceError on changeViewMode
This commit is contained in:
parent
4f56f9f90e
commit
1fcfe0e126
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue