mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-27 09:09:42 +00:00
24 lines
424 B
JavaScript
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,
|
||
|
|
};
|