fix text content of category names
This commit is contained in:
parent
fc5ef0f89a
commit
19a1359e70
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue