Skip to content

Commit

Permalink
fixup! Mark selected dark mode filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Nov 16, 2024
1 parent be660ec commit 79c7c95
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 @@ -130,7 +130,7 @@ OSM.initializeContextMenu = function (map) {
function updateDarkModeMenu() {
darkModeMenuElements.toggle(prefersDarkQuery.matches);
darkModeMenuElements.find("input[type='radio']").each(function () {
$(this).prop("checked", $(this).data("filter") == selectedDarkModeFilter);
$(this).prop("checked", $(this).data("filter") === selectedDarkModeFilter);
});
}

Expand Down

0 comments on commit 79c7c95

Please sign in to comment.