diff --git a/templates/default.html b/templates/default.html index 04fa0ef..8dd931f 100644 --- a/templates/default.html +++ b/templates/default.html @@ -102,12 +102,7 @@ document.getElementById("categories_toggle").onclick = function() { categories_menu_item = document.getElementById("categories_menu"); - if (categories_menu_item.style.display == "none") { - categories_menu_item.style.display = "block" - } - else { - categories_menu_item.style.display = "none" - } + categories_menu_item.style.display = categories_menu_item.style.display === "none" ? "block" : "none" }; document.getElementById("dark_theme_toggle").onclick = function() { html = document.documentElement;