var storage = window . localStorage ; async function removeItem ( key ) { try { await storage . removeItem ( key ) ; return true ; } catch ( error ) { } } async function setItem ( key , value ) { try { await storage . setItem ( key , JSON . stringify ( value ) ) ; return value ; } catch ( error ) { } } async function getItem ( key ) { let results ; try { results = await storage . getItem ( key ) ; return JSON . parse ( results ) ; } catch ( error ) { return null ; } } export { removeItem , getItem , setItem , } ;