Fixed map creation

This commit is contained in:
2023-05-09 13:45:41 +02:00
parent 687c1a5a60
commit f728ac2512

View File

@@ -59,9 +59,9 @@ function init() {
*/
function changeActiveTools(activeCategoryButton) {
let toolList = document.getElementById("toolList").children;
let categoryToClass = new Map(["XML", "xmlTool"],
["JSON", "jsonTool"],
["REST", "restTool"]);
let categoryToClass = new Map([["XML", "xmlTool"],
["JSON", "jsonTool"],
["REST", "restTool"]]);
let activeClass = categoryToClass.get(activeCategoryButton.toUpperCase());
if(activeClass == null) return;