Skip to content

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

Merged
ukutaht merged 2 commits into
masterfrom
embed-localstorage
Apr 28, 2021
Merged

Don't use localStorage when the browser doesn't support it#971
ukutaht merged 2 commits into
masterfrom
embed-localstorage

Conversation

@ukutaht

@ukutaht ukutaht commented Apr 28, 2021

Copy link
Copy Markdown
Contributor

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.

1 participant