From 1db569d4ee45d21aff35042e2e8097c1ffdf0221 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 11 Nov 2023 19:53:19 -0500 Subject: [PATCH] Fix last commit Related commit: https://github.com/gorhill/uBlock/commit/e30223c42ed48f7845384b3ad107202490c39a08 This needs to be done with currently cached list, not with failed modified list. --- src/js/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/assets.js b/src/js/assets.js index 44aa33107..0282ce761 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -1274,6 +1274,7 @@ async function diffUpdater() { assetCacheRead(assetKey).then(result => { data.text = result.content; data.status = undefined; + checkAndCorrectDiffPath(data); bc.postMessage(data); }); return; @@ -1296,7 +1297,6 @@ async function diffUpdater() { updaterUpdated.push(assetKey); } else if ( data.error ) { ubolog(`Diff updater: failed to update ${data.name} using ${data.patchPath}\n\treason: ${data.error}`); - checkAndCorrectDiffPath(data); } else if ( data.status === 'nopatch-yet' || data.status === 'nodiff' ) { ubolog(`Diff updater: skip update of ${data.name} using ${data.patchPath}\n\treason: ${data.status}`); const assetKey = assetKeyFromDiffName(data.name);