mirror of https://github.com/gorhill/uBlock.git
Support update period below 1-day
Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/11bfwgn/how_to_update_custom_filter_lists_automatically/ja280xu/
This commit is contained in:
parent
7edef91437
commit
db118483c9
|
@ -972,7 +972,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
|||
let updateAfter = parseInt(matches[1], 10);
|
||||
if ( isNaN(updateAfter) === false ) {
|
||||
if ( matches[2] !== undefined ) {
|
||||
updateAfter = Math.ceil(updateAfter / 24);
|
||||
updateAfter = Math.ceil(updateAfter / 12) / 2;
|
||||
}
|
||||
updateAfter = Math.max(updateAfter, 0.5);
|
||||
if ( updateAfter !== listEntry.updateAfter ) {
|
||||
|
|
Loading…
Reference in New Issue