mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-13 21:00:16 +00:00
Fix typo
This commit is contained in:
parent
3a5891fdfe
commit
e40da9c14e
1 changed files with 2 additions and 2 deletions
|
@ -133,12 +133,12 @@ function createCategories(){
|
||||||
ret[++i]=item;
|
ret[++i]=item;
|
||||||
ns[i]=0;
|
ns[i]=0;
|
||||||
}else{
|
}else{
|
||||||
ns[i] += (item === "legacy") ? 0 : 1;
|
ns[i] += (item === "legacy" ? 0 : 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let map = ret.map((a,i)=>({name:a,value:ns[i]}))
|
let map = ret.map((a,i)=>({name:a,value:ns[i]}))
|
||||||
|
|
||||||
return map.sort((a,b)=>(:a.value > b.value?-1:a.value < b.value ? 1:0))
|
return map.sort((a,b)=>(a.value > b.value?-1:a.value < b.value ? 1:0))
|
||||||
})();
|
})();
|
||||||
|
|
||||||
for(let cat of CAT_NAMES){
|
for(let cat of CAT_NAMES){
|
||||||
|
|
Loading…
Reference in a new issue