Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
SessionData.js 437 B
"use strict";

var SessionObjectType = require('./SessionObjectType');

var Cookies = require('js-cookie');

function SessionData() {

}

SessionData.prototype.getShowComments = function() {
  return Cookies.get(SessionObjectType.SHOW_COMMENT) === "true";
};

SessionData.prototype.setShowComments = function(value) {
  return Cookies.set(SessionObjectType.SHOW_COMMENT, value + "");
};

module.exports = SessionData;