diff --git a/app/assets/javascripts/discourse/lib/screen-track.js.es6 b/app/assets/javascripts/discourse/lib/screen-track.js.es6 index 26451f433c..8fe233401b 100644 --- a/app/assets/javascripts/discourse/lib/screen-track.js.es6 +++ b/app/assets/javascripts/discourse/lib/screen-track.js.es6 @@ -136,14 +136,14 @@ const ScreenTrack = Ember.Object.extend({ }); } else { // Anonymous viewer - save to localStorage - const store = this.get('keyValueStore'); + const storage = this.get('keyValueStore'); // Save total time - const existingTime = store.getInt('anon-topic-time'); - store.setItem('anon-topic-time', existingTime + this.get('topicTime')); + const existingTime = storage.getInt('anon-topic-time'); + storage.setItem('anon-topic-time', existingTime + this.get('topicTime')); // Save unique topic IDs up to a max - let topicIds = store.get('anon-topic-ids'); + let topicIds = storage.get('anon-topic-ids'); if (topicIds) { topicIds = topicIds.split(',').map(e => parseInt(e)); } else { @@ -151,13 +151,15 @@ const ScreenTrack = Ember.Object.extend({ } if (topicIds.indexOf(topicId) === -1 && topicIds.length < ANON_MAX_TOPIC_IDS) { topicIds.push(topicId); - store.setItem('anon-topic-ids', topicIds.join(',')); + storage.setItem('anon-topic-ids', topicIds.join(',')); } // Inform the observer if (this.get('anonFlushCallback')) { this.get('anonFlushCallback')(); } + + // No need to call controller.readPosts() } this.set('topicTime', 0); diff --git a/app/assets/javascripts/discourse/templates/components/signup-cta.hbs b/app/assets/javascripts/discourse/templates/components/signup-cta.hbs index defda14fab..818f66cd84 100644 --- a/app/assets/javascripts/discourse/templates/components/signup-cta.hbs +++ b/app/assets/javascripts/discourse/templates/components/signup-cta.hbs @@ -5,8 +5,8 @@ {{i18n "signup_cta.hide_forever"}}
{{else}} -{{i18n "signup_cta.line_1"}}
-{{i18n "signup_cta.line_2"}}
+{{i18n "signup_cta.intro"}}
+{{i18n "signup_cta.value_prop"}}
{{signupMethodsTranslated}}