Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use localStorage when the browser doesn't support it #971

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

ukutaht
Copy link
Contributor

@ukutaht ukutaht commented Apr 28, 2021

Changes

UI preferences are currently stored in localStorage. This breaks the UI when the dashboard is running in embedded mode on a another domain and the browser blocks third-party cookies (and storage).

With this PR the dashboard will just fall back to storing UI preferences in memory instead of localStorage. The preferences will not be remembered for the next time but at least the dashboard will work.

Helps but does not fully address #919

Tests

  • This PR does not require tests

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

@ukutaht ukutaht merged commit 255b4b2 into master Apr 28, 2021
@ukutaht ukutaht deleted the embed-localstorage branch April 28, 2021 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant