mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fix #3406
This commit is contained in:
parent
a81d2a759b
commit
9fb455d2df
1 changed files with 4 additions and 1 deletions
|
|
@ -721,6 +721,9 @@
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/3406
|
||||
// Lower minimum update period to 1 day.
|
||||
|
||||
µBlock.extractFilterListMetadata = function(assetKey, raw) {
|
||||
var listEntry = this.availableFilterLists[assetKey];
|
||||
if ( listEntry === undefined ) { return; }
|
||||
|
|
@ -742,7 +745,7 @@
|
|||
// Extract update frequency information
|
||||
matches = head.match(/(?:^|\n)![\t ]*Expires:[\t ]*([\d]+)[\t ]*days?/i);
|
||||
if ( matches !== null ) {
|
||||
v = Math.max(parseInt(matches[1], 10), 2);
|
||||
v = Math.max(parseInt(matches[1], 10), 1);
|
||||
if ( v !== listEntry.updateAfter ) {
|
||||
this.assets.registerAssetSource(assetKey, { updateAfter: v });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue