mirror of https://github.com/gorhill/uBlock.git
Fix regression from promisification work
Related commit:
- e27328f931
The regression was preventing the compiled filter
lists from being properly loaded by uBO, thus
always causing a full parsing/compiling at
launch time.
This commit is contained in:
parent
123e15451f
commit
55cc0c6997
|
@ -376,7 +376,7 @@ const saveAssetSourceRegistry = (( ) => {
|
||||||
let timer;
|
let timer;
|
||||||
const save = function() {
|
const save = function() {
|
||||||
timer = undefined;
|
timer = undefined;
|
||||||
µBlock.cacheStorage.set({ assetSourceRegistry: assetSourceRegistry });
|
µBlock.cacheStorage.set({ assetSourceRegistry });
|
||||||
};
|
};
|
||||||
return function(lazily) {
|
return function(lazily) {
|
||||||
if ( timer !== undefined ) {
|
if ( timer !== undefined ) {
|
||||||
|
@ -533,7 +533,7 @@ const assetCacheWrite = async function(assetKey, details) {
|
||||||
entry.remoteURL = details.url;
|
entry.remoteURL = details.url;
|
||||||
}
|
}
|
||||||
µBlock.cacheStorage.set({
|
µBlock.cacheStorage.set({
|
||||||
cacheDict,
|
assetCacheRegistry,
|
||||||
[`cache/${assetKey}`]: content
|
[`cache/${assetKey}`]: content
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue