Fixed map creation
This commit is contained in:
@@ -59,9 +59,9 @@ function init() {
|
|||||||
*/
|
*/
|
||||||
function changeActiveTools(activeCategoryButton) {
|
function changeActiveTools(activeCategoryButton) {
|
||||||
let toolList = document.getElementById("toolList").children;
|
let toolList = document.getElementById("toolList").children;
|
||||||
let categoryToClass = new Map(["XML", "xmlTool"],
|
let categoryToClass = new Map([["XML", "xmlTool"],
|
||||||
["JSON", "jsonTool"],
|
["JSON", "jsonTool"],
|
||||||
["REST", "restTool"]);
|
["REST", "restTool"]]);
|
||||||
|
|
||||||
let activeClass = categoryToClass.get(activeCategoryButton.toUpperCase());
|
let activeClass = categoryToClass.get(activeCategoryButton.toUpperCase());
|
||||||
if(activeClass == null) return;
|
if(activeClass == null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user