mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-10 03:40:14 +00:00
remove references to previousCategory
This commit is contained in:
parent
67e731ccb5
commit
0b56963e78
1 changed files with 3 additions and 3 deletions
|
@ -108,9 +108,9 @@ async function onCategoryClicked(categoryNode,isSecondary = false){
|
||||||
//let names = DB.query(categoryNode.textContent);
|
//let names = DB.query(categoryNode.textContent);
|
||||||
|
|
||||||
let secondaryCategoriesNode = document.querySelector("#secondaryCategories");
|
let secondaryCategoriesNode = document.querySelector("#secondaryCategories");
|
||||||
|
let fileNames = currentCategory.getFileNames(categoryNode,isSecondary);
|
||||||
if(!isSecondary){
|
if(!isSecondary){
|
||||||
let fileNames = currentCategory.getFileNames(categoryNode,false);
|
|
||||||
if(fileNames.length > 9){
|
if(fileNames.length > 9){
|
||||||
let matchingSecondaries = getSecondaryCategories(fileNames);
|
let matchingSecondaries = getSecondaryCategories(fileNames);
|
||||||
for(let child of Array.from(secondaryCategories.children)){
|
for(let child of Array.from(secondaryCategories.children)){
|
||||||
|
@ -124,7 +124,7 @@ async function onCategoryClicked(categoryNode,isSecondary = false){
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let c of Array.from(document.querySelectorAll(".target"))){
|
for(let c of Array.from(document.querySelectorAll(".target"))){
|
||||||
previousCategory.fileNames.includes(getText(c)) ? c.classList.remove("hidden") : c.classList.add("hidden");
|
fileNames.includes(getText(c)) ? c.classList.remove("hidden") : c.classList.add("hidden");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue