Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Check for start page before checking local storage

ZachTRicef709675c21f8
diff --git a/web/js/tour/ui.js b/web/js/tour/ui.js
index a14033f49..2e157520c 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);