mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-22 18:32:45 +01:00
Group lists with unknown group to special section
Related issue: https://old.reddit.com/r/uBlockOrigin/comments/1b6tad0
This commit is contained in:
parent
24d94e559d
commit
04fead8d8a
@ -229,6 +229,7 @@ const renderFilterLists = ( ) => {
|
||||
'social',
|
||||
'annoyances',
|
||||
'regions',
|
||||
'unknown',
|
||||
'custom'
|
||||
];
|
||||
for ( const key of groupKeys ) {
|
||||
@ -238,9 +239,11 @@ const renderFilterLists = ( ) => {
|
||||
};
|
||||
}
|
||||
for ( const [ listkey, listDetails ] of Object.entries(response.available) ) {
|
||||
const groupkey = listDetails.group;
|
||||
let groupkey = listDetails.group;
|
||||
if ( listTree.hasOwnProperty(groupkey) === false ) {
|
||||
groupkey = 'unknown';
|
||||
}
|
||||
const groupDetails = listTree[groupkey];
|
||||
if ( groupDetails === undefined ) { continue; }
|
||||
if ( listDetails.parent !== undefined ) {
|
||||
let lists = groupDetails.lists;
|
||||
for ( const parent of listDetails.parent.split('|') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user