File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,6 @@ app.extend({
259259 *
260260 * @param {String } id - A key in `FEATURES`.
261261 * @param {Boolean } bool - whether to enable (true) or disable (false)
262- * @return {Boolean }
263262 */
264263 setFeature : function ( id , bool ) {
265264 FEATURES [ id ] = bool ;
Original file line number Diff line number Diff line change 1- var _ = require ( 'lodash' ) ;
21var View = require ( 'ampersand-view' ) ;
32var format = require ( 'util' ) . format ;
43var SidebarView = require ( '../sidebar' ) ;
@@ -51,9 +50,9 @@ var HomeView = View.extend({
5150 } ,
5251 render : function ( ) {
5352 this . renderWithTemplate ( this ) ;
54- if ( _ . isUndefined ( localStorage . tourHasRun ) ) {
53+ if ( localStorage . lastKnownVersion !== app . meta [ 'App Version' ] ) {
5554 this . renderSubview ( new TourView ( ) , this . queryByHook ( 'tour-container' ) ) ;
56- localStorage . tourHasRun = 'true' ;
55+ localStorage . lastKnownVersion = app . meta [ 'App Version' ] ;
5756 }
5857 } ,
5958 onInstanceFetched : function ( ) {
You can’t perform that action at this time.
0 commit comments