mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-01 16:49:39 +02:00
Only filter lists are diff-updatable
This commit is contained in:
parent
443c1f81e1
commit
7f2703acd6
@ -1204,6 +1204,7 @@ const getAssetDiffDetails = assetKey => {
|
|||||||
out.writeTime = cacheEntry.writeTime;
|
out.writeTime = cacheEntry.writeTime;
|
||||||
const assetEntry = assetSourceRegistry[assetKey];
|
const assetEntry = assetSourceRegistry[assetKey];
|
||||||
if ( assetEntry === undefined ) { return; }
|
if ( assetEntry === undefined ) { return; }
|
||||||
|
if ( assetEntry.content !== 'filters' ) { return; }
|
||||||
if ( Array.isArray(assetEntry.cdnURLs) ) {
|
if ( Array.isArray(assetEntry.cdnURLs) ) {
|
||||||
out.cdnURLs = assetEntry.cdnURLs.slice();
|
out.cdnURLs = assetEntry.cdnURLs.slice();
|
||||||
} else if ( reIsExternalPath.test(assetKey) ) {
|
} else if ( reIsExternalPath.test(assetKey) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user