1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-18 18:48:45 +02:00

Only filter lists are diff-updatable

This commit is contained in:
Raymond Hill 2023-12-19 11:51:20 -05:00
parent 443c1f81e1
commit 7f2703acd6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1204,6 +1204,7 @@ const getAssetDiffDetails = assetKey => {
out.writeTime = cacheEntry.writeTime;
const assetEntry = assetSourceRegistry[assetKey];
if ( assetEntry === undefined ) { return; }
if ( assetEntry.content !== 'filters' ) { return; }
if ( Array.isArray(assetEntry.cdnURLs) ) {
out.cdnURLs = assetEntry.cdnURLs.slice();
} else if ( reIsExternalPath.test(assetKey) ) {