mirror of
https://github.com/discourse/discourse.git
synced 2025-02-04 08:36:31 +08:00
14 lines
410 B
JavaScript
14 lines
410 B
JavaScript
import RestModel from 'discourse/models/rest';
|
|
import Singleton from 'discourse/mixins/singleton';
|
|
|
|
// A data model representing current session data. You can put transient
|
|
// data here you might want later. It is not stored or serialized anywhere.
|
|
const Session = RestModel.extend({
|
|
init: function() {
|
|
this.set('highestSeenByTopic', {});
|
|
}
|
|
});
|
|
|
|
Session.reopenClass(Singleton);
|
|
export default Session;
|