Skill fixes (#9113)

* Added local storage setting for spell drawer

* Added new spell styles

* Fixed typo
This commit is contained in:
Keith Holliday
2017-09-30 23:04:18 -05:00
committed by GitHub
parent dbf9fd54be
commit e87c180e9b
2 changed files with 57 additions and 11 deletions

View 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,
};