1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

Fix last commit

Related commit:
e30223c42e

This needs to be done with currently cached list, not with
failed modified list.
This commit is contained in:
Raymond Hill 2023-11-11 19:53:19 -05:00
parent a014b547ef
commit 1db569d4ee
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

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