From 79c7c95aa256ba9e0bbf9893f69d459f26593739 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 16 Nov 2024 04:25:44 +0300 Subject: [PATCH] fixup! Mark selected dark mode filter --- app/assets/javascripts/index/contextmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); }