mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Skill fixes (#9113)
* Added local storage setting for spell drawer * Added new spell styles * Fixed typo
This commit is contained in:
23
website/client/libs/userlocalManager.js
Normal file
23
website/client/libs/userlocalManager.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user