Using localStorage in Perspective

Hi Guys, would anyone know if I can interact with localStorage in Perspective? The simple use case would be storing a theme preferences in the browser rather than database.

Thanks!