mirror of https://github.com/gorhill/uBlock.git
fix nonsensical "obsolete" status for user filters
This commit is contained in:
parent
d6b733010d
commit
a69379068e
|
@ -859,7 +859,10 @@ api.metadata = function(callback) {
|
||||||
obsoleteAfter = cacheEntry.writeTime + assetEntry.updateAfter * 86400000;
|
obsoleteAfter = cacheEntry.writeTime + assetEntry.updateAfter * 86400000;
|
||||||
assetEntry.obsolete = obsoleteAfter < now;
|
assetEntry.obsolete = obsoleteAfter < now;
|
||||||
assetEntry.remoteURL = cacheEntry.remoteURL;
|
assetEntry.remoteURL = cacheEntry.remoteURL;
|
||||||
} else {
|
} else if (
|
||||||
|
assetEntry.contentURL &&
|
||||||
|
assetEntry.contentURL.length !== 0
|
||||||
|
) {
|
||||||
assetEntry.writeTime = 0;
|
assetEntry.writeTime = 0;
|
||||||
obsoleteAfter = 0;
|
obsoleteAfter = 0;
|
||||||
assetEntry.obsolete = true;
|
assetEntry.obsolete = true;
|
||||||
|
|
Loading…
Reference in New Issue