diff --git a/app/assets/javascripts/index/contextmenu.js b/app/assets/javascripts/index/contextmenu.js index e60d467a14..5924d48aae 100644 --- a/app/assets/javascripts/index/contextmenu.js +++ b/app/assets/javascripts/index/contextmenu.js @@ -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); }); }