Skip to content

Commit

Permalink
Ensure Default Reload Interval
Browse files Browse the repository at this point in the history
This patch ensures that a default data reload interval is set, even if no
URL parameter is present.
  • Loading branch information
lkiesow committed Mar 7, 2022
1 parent e387ad3 commit 56997f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ window.onload = function () {
created: update_data,
});
// Trigger next refresh after set time if over.
const refresh = new URLSearchParams(window.location.search).get('refresh');
const refresh = new URLSearchParams(window.location.search).get('refresh') || 10;
if (refresh) {
setInterval(function () {
update_data();
Expand Down

0 comments on commit 56997f5

Please sign in to comment.