mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01: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,
|
|
};
|