Only run the tour once

pull/35/head
Starbeamrainbowlabs 4 years ago
parent fa433c88b0
commit ed7b5aec9b
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 2
      client_src/js/Tour.mjs
  2. 2
      client_src/js/UI.mjs

@ -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…
Cancel
Save