From 55cc0c69975482efa1bceb2d938eba27b108e386 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 15 Sep 2019 09:35:04 -0400 Subject: [PATCH] Fix regression from promisification work Related commit: - https://github.com/gorhill/uBlock/commit/e27328f9319132ba7d7a27de159aa077cf80ff37 The regression was preventing the compiled filter lists from being properly loaded by uBO, thus always causing a full parsing/compiling at launch time. --- src/js/assets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/assets.js b/src/js/assets.js index fce3b3463..6bfe848f2 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -376,7 +376,7 @@ const saveAssetSourceRegistry = (( ) => { let timer; const save = function() { timer = undefined; - µBlock.cacheStorage.set({ assetSourceRegistry: assetSourceRegistry }); + µBlock.cacheStorage.set({ assetSourceRegistry }); }; return function(lazily) { if ( timer !== undefined ) { @@ -533,7 +533,7 @@ const assetCacheWrite = async function(assetKey, details) { entry.remoteURL = details.url; } µBlock.cacheStorage.set({ - cacheDict, + assetCacheRegistry, [`cache/${assetKey}`]: content });