1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Lower allowed minimum Expires directive to "12 hours" (from "1 day")

This commit is contained in:
Raymond Hill 2022-03-24 13:23:24 -04:00
parent 0bfa41ceb9
commit 18bc4dd8b8
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -936,7 +936,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
if ( matches[2] !== undefined ) {
updateAfter = Math.ceil(updateAfter / 24);
}
updateAfter = Math.max(updateAfter, 1);
updateAfter = Math.max(updateAfter, 0.5);
if ( updateAfter !== listEntry.updateAfter ) {
listEntry.updateAfter = updateAfter;
io.registerAssetSource(assetKey, { updateAfter });