mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
* 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)
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,
|
|
};
|