From db118483c91da468d22b943aba07bbcfc2e37427 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 1 Mar 2023 05:26:30 -0500 Subject: [PATCH] Support update period below 1-day Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/11bfwgn/how_to_update_custom_filter_lists_automatically/ja280xu/ --- src/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 4304972cd..3e150b19c 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -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 ) {