mirror of https://github.com/gorhill/uBlock.git
Fix non-filter lists ending into selected lists at install time
Fortunately, getAvailableLists() filters out non-filter list resources thus preventing those mistakenly selected resources from being loaded as filter lists.
This commit is contained in:
parent
ea7d411bc2
commit
c4de5552e5
|
@ -635,6 +635,7 @@ import {
|
||||||
for ( const key in lists ) {
|
for ( const key in lists ) {
|
||||||
if ( lists.hasOwnProperty(key) === false ) { continue; }
|
if ( lists.hasOwnProperty(key) === false ) { continue; }
|
||||||
const list = lists[key];
|
const list = lists[key];
|
||||||
|
if ( list.content !== 'filters' ) { continue; }
|
||||||
if ( list.off !== true ) {
|
if ( list.off !== true ) {
|
||||||
selectedListKeys.push(key);
|
selectedListKeys.push(key);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue