Safari private browsing disables localStorage but also makes window.localStorage readonly, inconveniently. What's the best workaround for this?