Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 2 additions & 3 deletions src/home/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var _ = require('lodash');
var View = require('ampersand-view');
var format = require('util').format;
var SidebarView = require('../sidebar');
Expand Down Expand Up @@ -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() {
Expand Down