chore: revert "fix(game): make map dark mode too"

This reverts commit 4fee40921e.
This commit is contained in:
uku 2025-02-04 14:22:18 +01:00
parent be998b1959
commit 7af68e51ba
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -46,8 +46,7 @@
mapPromise.then((mapData) => {
map = L.map("map").setView(center, zoom);
const mapMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
L.tileLayer(`https://basemaps.cartocdn.com/${mapMode}_nolabels/{z}/{x}/{y}{r}.png`, {
L.tileLayer(`https://basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png`, {
attribution:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 20,