1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Use in-memory availableFilterLists if populated

This commit is contained in:
Raymond Hill 2023-04-26 20:52:39 -04:00
parent b8cfa382e8
commit b870c94651
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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,
]);