Only run the tour once

This commit is contained in:
Starbeamrainbowlabs 2019-06-11 15:38:20 +01:00
parent fa433c88b0
commit ed7b5aec9b
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View file

@ -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());

View file

@ -77,7 +77,7 @@ class UI {
await show_changelog(true);
await this.tour.run();
await this.tour.run_once();
}
}