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
import sys
import yaml
import json
import yaml
with open(sys.argv[1], 'r') as infile:
print(json.dumps(yaml.load(infile)))
......@@ -691,9 +691,12 @@ var tour = new function() {
/**
* Initialize the tour.
*/
this.init = async function _in() {
this.init = async function _in(refresh=false) {
try {
tour.debug("initializing tour module");
if (refresh) {
localStorage.removeItem("tour_state");
}
await tour.load_tour();
tour.post_init();
} catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment