mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Use in-memory availableFilterLists if populated
This commit is contained in:
parent
b8cfa382e8
commit
b870c94651
1 changed files with 3 additions and 1 deletions
|
|
@ -679,7 +679,9 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
|||
// Load previously saved available lists -- these contains data
|
||||
// computed at run-time, we will reuse this data if possible
|
||||
const [ bin, registeredAssets, badlists ] = await Promise.all([
|
||||
vAPI.storage.get('availableFilterLists'),
|
||||
Object.keys(this.availableFilterLists) !== 0
|
||||
? { availableFilterLists: this.availableFilterLists }
|
||||
: vAPI.storage.get('availableFilterLists'),
|
||||
io.metadata(),
|
||||
this.badLists.size === 0 ? io.get('ublock-badlists') : false,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue