This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app/models/session.js
2020-09-04 13:42:47 +02:00

17 lines
421 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({
hasFocus: null,
init() {
this.set("highestSeenByTopic", {});
},
});
Session.reopenClass(Singleton);
export default Session;