Skip to content

Commit

Permalink
Support update period below 1-day
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 1, 2023
1 parent 7edef91 commit db11848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/storage.js
Expand Up @@ -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 ) {
Expand Down

2 comments on commit db11848

@gwarser
Copy link
Contributor

@gwarser gwarser commented on db11848 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gwarser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 hours in 153783c 1.52.3rc16
4 hours in 2360bc0 1.53.1rc1

Please sign in to comment.