Skip to content
Snippets Groups Projects
Commit e9bab1c3 authored by Quazgar's avatar Quazgar Committed by Florian Spreckelsen
Browse files

FIX: Fixed problem where Tour's init() always reset the tour state.

parent 56b6fba0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment