From 19a1359e709b4456d009ab39ea427cdaecb55856 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 5 Jun 2020 13:01:30 +0300 Subject: [PATCH] fix text content of category names --- html_resources/selector.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html_resources/selector.js b/html_resources/selector.js index c67350a..3060c8c 100644 --- a/html_resources/selector.js +++ b/html_resources/selector.js @@ -98,12 +98,14 @@ function createCategories(){ const createNode = function(name,type){ let node = document.createElement("div"); node.classList.add(type); - node.textContent = name.substring(0,name.lastIndexOf(".")); if(type === "target"){ + node.textContent = name.substring(0,name.lastIndexOf(".")); let link = node.appendChild(document.createElement("a")); node.classList.add("hidden"); link.href = `https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/${name}`; link.title = "See on Github"; + }else{ + node.textContent = name; } return node;