export default { getItem(key) { var item = window.localStorage.getItem(key); return item && JSON.parse(item); }, setItem(key, val) { window.localStorage.setItem(key, JSON.stringify(val)); }, removeItem(key) { return window.localStorage.removeItem(key); }, keys() { return Object.keys(window.localStorage); }, };