Skip to content
Snippets Groups Projects
Unverified Commit 53162e11 authored by Daniel's avatar Daniel
Browse files

ENH: tour.init() has refresh argument now.

parent 23307f29
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3 #!/usr/bin/env python3
import sys import sys
import yaml
import json import json
import yaml
with open(sys.argv[1], 'r') as infile: with open(sys.argv[1], 'r') as infile:
print(json.dumps(yaml.load(infile))) print(json.dumps(yaml.load(infile)))
...@@ -691,9 +691,12 @@ var tour = new function() { ...@@ -691,9 +691,12 @@ var tour = new function() {
/** /**
* Initialize the tour. * Initialize the tour.
*/ */
this.init = async function _in() { this.init = async function _in(refresh=false) {
try { try {
tour.debug("initializing tour module"); tour.debug("initializing tour module");
if (refresh) {
localStorage.removeItem("tour_state");
}
await tour.load_tour(); await tour.load_tour();
tour.post_init(); tour.post_init();
} catch (error) { } catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment