Only run the tour once
parent
fa433c88b0
commit
ed7b5aec9b
|
@ -126,7 +126,7 @@ class Tour {
|
|||
}
|
||||
|
||||
run_once() {
|
||||
if(!window.localStorage.has("completed_tour"))
|
||||
if(window.localStorage.getItem("completed_tour") === null)
|
||||
this.run();
|
||||
|
||||
window.localStorage.setItem("completed_tour", (new Date()).toISOString());
|
||||
|
|
|
@ -77,7 +77,7 @@ class UI {
|
|||
|
||||
|
||||
await show_changelog(true);
|
||||
await this.tour.run();
|
||||
await this.tour.run_once();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue