diff --git a/src/app.js b/src/app.js index a4856c3afe0..9d8c7ba99cc 100644 --- a/src/app.js +++ b/src/app.js @@ -259,7 +259,6 @@ app.extend({ * * @param {String} id - A key in `FEATURES`. * @param {Boolean} bool - whether to enable (true) or disable (false) - * @return {Boolean} */ setFeature: function(id, bool) { FEATURES[id] = bool; diff --git a/src/home/index.js b/src/home/index.js index bdc55610fda..40dd18c9cc7 100644 --- a/src/home/index.js +++ b/src/home/index.js @@ -1,4 +1,3 @@ -var _ = require('lodash'); var View = require('ampersand-view'); var format = require('util').format; var SidebarView = require('../sidebar'); @@ -51,9 +50,9 @@ var HomeView = View.extend({ }, render: function() { this.renderWithTemplate(this); - if (_.isUndefined(localStorage.tourHasRun)) { + if (localStorage.lastKnownVersion !== app.meta['App Version']) { this.renderSubview(new TourView(), this.queryByHook('tour-container')); - localStorage.tourHasRun = 'true'; + localStorage.lastKnownVersion = app.meta['App Version']; } }, onInstanceFetched: function() {