Skip to content

Commit

Permalink
Fix error when toggling Auto Refresh (#416)
Browse files Browse the repository at this point in the history
* Fix error when toggling Auto Refresh

The clearTimeout call was using the wrong parameter, leading to the error "Uncaught ReferenceError: reload is not defined"

* Update CHANGES

---------

Co-authored-by: Tobias Oetiker <[email protected]>
  • Loading branch information
jlu5 and oetiker authored Dec 2, 2024
1 parent 5162854 commit b6cc486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- fix error when toggling autorefresh @jlu5
- Support parsing IPv6 output in OpenSSHJunOSPing Plugin @zimage
- Enhancement to SSHProbe allows specification of IPv4 vs IPv6 transport, #385
- InfluxDB 2.x v1 (compatibility) api doesn't set the "WWW-Authenticate" header (violating rfc7235).
Expand Down
2 changes: 1 addition & 1 deletion htdocs/js/smokeping.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Event.observe(
}, window.options.step * 1000);
$('refresh-button').style.textDecoration = "line-through";
} else {
clearTimeout(reload);
clearTimeout(refresh);
localStorage.setItem("noRefresh", true);
$('refresh-button').style.textDecoration = "none";
}
Expand Down

0 comments on commit b6cc486

Please sign in to comment.