From f709675c21f8d611950691f115e89e9a73569301 Mon Sep 17 00:00:00 2001 From: ZachTRice Date: Tue, 7 May 2019 16:16:23 -0400 Subject: [PATCH] Check for start page before checking local storage --- web/js/tour/ui.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/js/tour/ui.js b/web/js/tour/ui.js index a14033f49a..2e157520cd 100644 --- a/web/js/tour/ui.js +++ b/web/js/tour/ui.js @@ -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);