mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix ReferenceError on changeViewMode (#528)
This commit is contained in:
parent
7ac69bb413
commit
ae58634dee
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