Files
habitica/website/client/libs/userlocalManager.js
Keith Holliday 8eb7c67f12 Merge develop to release (#9115)
* Some random quick (#9111)

* Switch group button directions

* Allowed admins to export challenges

* Added scoping to some stable styles

* Fixed challenge cloning

* Tasks tags (#9112)

* Added auto apply and exit

* Add challenge tag editing

* Fixed lint

* Skill fixes (#9113)

* Added local storage setting for spell drawer

* Added new spell styles

* Fixed typo

* Reset local creds if access is denied (#9114)
2017-09-30 23:54:12 -05:00

24 lines
424 B
JavaScript

const CONSTANTS = {
keyConstants: {
SPELL_DRAWER_STATE: 'spell-drawer-state',
},
valueConstants: {
SPELL_DRAWER_CLOSED: 'spell-drawer-closed',
SPELL_DRAWER_OPEN: 'spell-drawer-open',
},
};
function setLocalSetting (key, value) {
localStorage.setItem(key, value);
}
function getLocalSetting (key) {
return localStorage.getItem(key);
}
export {
CONSTANTS,
getLocalSetting,
setLocalSetting,
};