summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-27 13:31:38 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:42:59 +0100
commit5e54ac89de0f48e2042af47fe52ba78e94ebf958 (patch)
tree425d1156a0ed4f1b52d183a2d0512fc109e680d5
parent014b4d855219f1bea72c9678ed6cd9ff15312925 (diff)
download300-earth-and-water-5e54ac89de0f48e2042af47fe52ba78e94ebf958.tar.gz
300: Fix Greece map flipping with new URL scheme.
-rw-r--r--ui.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index a667fae..8c2526b 100644
--- a/ui.js
+++ b/ui.js
@@ -641,8 +641,7 @@ function toggle_markers() {
document.querySelector(".map").classList.toggle("hide_markers");
}
-player = new URLSearchParams(window.location.search).get("role");
-if (player == GREECE)
+if (param_role == GREECE)
document.getElementById("map").classList.add("greek");
build_ui();