1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

fix nonsensical "obsolete" status for user filters

This commit is contained in:
Raymond Hill 2018-03-04 15:00:42 -05:00
parent d6b733010d
commit a69379068e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

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