Updated browser storage to fit with new api