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:
Raymond Hill 2023-03-01 05:26:30 -05:00
parent 7edef91437
commit db118483c9
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {