Skip to content

Commit

Permalink
fixup! Show/hide dark mode menu depending on prefers-color-scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Nov 16, 2024
1 parent 79c7c95 commit e7a22cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/index/contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ OSM.initializeContextMenu = function (map) {
});

const prefersDarkQuery = matchMedia("(prefers-color-scheme: dark)");
L.DomEvent.on(prefersDarkQuery, 'change', () => {
L.DomEvent.on(prefersDarkQuery, "change", () => {
updateDarkModeMenu();
});
updateDarkModeMenu();
Expand Down

0 comments on commit e7a22cd

Please sign in to comment.