From ae58634dee1bd298716355feab968c0fee31efe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on?= Date: Mon, 19 Oct 2020 21:07:46 +0200 Subject: [PATCH] fix ReferenceError on changeViewMode (#528) --- modules/ui/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/options.js b/modules/ui/options.js index 9d43ff1a2..00797a849 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -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");