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({
259
259
*
260
260
* @param {String } id - A key in `FEATURES`.
261
261
* @param {Boolean } bool - whether to enable (true) or disable (false)
262
- * @return {Boolean }
263
262
*/
264
263
setFeature : function ( id , bool ) {
265
264
FEATURES [ id ] = bool ;
Original file line number Diff line number Diff line change 1
- var _ = require ( 'lodash' ) ;
2
1
var View = require ( 'ampersand-view' ) ;
3
2
var format = require ( 'util' ) . format ;
4
3
var SidebarView = require ( '../sidebar' ) ;
@@ -51,9 +50,9 @@ var HomeView = View.extend({
51
50
} ,
52
51
render : function ( ) {
53
52
this . renderWithTemplate ( this ) ;
54
- if ( _ . isUndefined ( localStorage . tourHasRun ) ) {
53
+ if ( localStorage . lastKnownVersion !== app . meta [ 'App Version' ] ) {
55
54
this . renderSubview ( new TourView ( ) , this . queryByHook ( 'tour-container' ) ) ;
56
- localStorage . tourHasRun = 'true' ;
55
+ localStorage . lastKnownVersion = app . meta [ 'App Version' ] ;
57
56
}
58
57
} ,
59
58
onInstanceFetched : function ( ) {
You can’t perform that action at this time.
0 commit comments