Skip to content

Commit

Permalink
Check for start page before checking local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachTRice committed May 7, 2019
1 parent d22fa51 commit f709675
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web/js/tour/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ export function tourUi(models, ui, config) {
};

self.checkBuildTimestamp = function() {
// If there is no localStorage, always show the tour start modal
if (!util.browser.localStorage) return true;
var hideTour = localStorage.getItem('hideTour');

// Don't start tour if coming in via a permalink
if (window.location.search && !config.parameters.tour) {
return false;
}
// If there is no localStorage, always show the tour start modal
if (!util.browser.localStorage) return true;
let hideTour = localStorage.getItem('hideTour');

if (hideTour && config.buildDate) {
let buildDate = new Date(config.buildDate);
Expand Down

0 comments on commit f709675

Please sign in to comment.