webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
338 stars 212 forks source link

localStorage manager added #3654

Closed lalalune closed 1 year ago

lalalune commented 1 year ago

Describe your changes

localStorage fails entirely in private browsing mode on chrome and Safari.

This fixes by adding a manager which uses an identical localStorage API, but will revert to in-memory storage if localStorage is not available.

What are the steps for a QA tester to test this pull request?

Open regular browser, change some audio settings Open a private browser, change some audio settings Refresh the browser, verify the audio settings remain (localStorage working) or change (in memory is active)

For AI API keys, will need to also pull in this PR: https://github.com/webaverse/preauthenticator/pull/1