mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
Only run the tour once
This commit is contained in:
parent
fa433c88b0
commit
ed7b5aec9b
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ class Tour {
|
||||||
}
|
}
|
||||||
|
|
||||||
run_once() {
|
run_once() {
|
||||||
if(!window.localStorage.has("completed_tour"))
|
if(window.localStorage.getItem("completed_tour") === null)
|
||||||
this.run();
|
this.run();
|
||||||
|
|
||||||
window.localStorage.setItem("completed_tour", (new Date()).toISOString());
|
window.localStorage.setItem("completed_tour", (new Date()).toISOString());
|
||||||
|
|
|
@ -77,7 +77,7 @@ class UI {
|
||||||
|
|
||||||
|
|
||||||
await show_changelog(true);
|
await show_changelog(true);
|
||||||
await this.tour.run();
|
await this.tour.run_once();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue