mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 01:13:15 +08:00
Store nothing if anon cta is disabled
This commit is contained in:
parent
e16eebb48c
commit
4e587eb68f
@ -137,7 +137,7 @@ const ScreenTrack = Ember.Object.extend({
|
|||||||
controller.readPosts(topicId, postNumbers);
|
controller.readPosts(topicId, postNumbers);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else if (this.get('anonFlushCallback')) {
|
||||||
// Anonymous viewer - save to localStorage
|
// Anonymous viewer - save to localStorage
|
||||||
const storage = this.get('keyValueStore');
|
const storage = this.get('keyValueStore');
|
||||||
|
|
||||||
@ -158,9 +158,7 @@ const ScreenTrack = Ember.Object.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Inform the observer
|
// Inform the observer
|
||||||
if (this.get('anonFlushCallback')) {
|
|
||||||
this.get('anonFlushCallback')();
|
this.get('anonFlushCallback')();
|
||||||
}
|
|
||||||
|
|
||||||
// No need to call controller.readPosts()
|
// No need to call controller.readPosts()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user