diff --git a/CHANGELOG.md b/CHANGELOG.md index 19d96209f1e1dce66012ef7de2288746176d2f51..d5c225054c8b172c20d38ebf8a1c1561ecb55ded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * #101 - loading of A LOT of references in `ext_references` slows down the webui or even freezes the brower. +* Fixed a bug where the Tour would lose its state upon page reload. ### Security (in case of vulnerabilities) diff --git a/src/core/js/tour.js b/src/core/js/tour.js index 57b426818abf2da0d58b46db3ce5bd893721bcc4..5d2c32aa148ab2ad53c3a4986f09616f3d091232 100644 --- a/src/core/js/tour.js +++ b/src/core/js/tour.js @@ -699,10 +699,11 @@ var tour = new function() { /** * Initialize the tour. */ - this.init = async function _in(refresh=false) { + this.init = async function _in(refresh) { try { - tour.debug("initializing tour module"); - if (refresh) { + tour.debug("initializing tour module, refresh: " + refresh); + if (refresh === true) { + tour.info("Refreshing tour state."); localStorage.removeItem("tour_state"); } await tour.load_tour();