chore: revert "fix(game): make map dark mode too"
This reverts commit 4fee40921e
.
This commit is contained in:
parent
be998b1959
commit
7af68e51ba
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
|
||||
maxZoom: 20,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue