1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-02 09:09:38 +02: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;
assetEntry.obsolete = obsoleteAfter < now;
assetEntry.remoteURL = cacheEntry.remoteURL;
} else {
} else if (
assetEntry.contentURL &&
assetEntry.contentURL.length !== 0
) {
assetEntry.writeTime = 0;
obsoleteAfter = 0;
assetEntry.obsolete = true;