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

Cross-tab sync #4

Open
Martin-Pitt opened this issue Nov 11, 2019 · 0 comments
Open

Cross-tab sync #4

Martin-Pitt opened this issue Nov 11, 2019 · 0 comments

Comments

@Martin-Pitt
Copy link

There is a standardised storage event that allows you to sync changes to the storage objects across multiple tabs.

E.g. if the user opens the bullet journal in another or you have a different app that wants to re-use the same storage info, it would be able to keep track of the latest changes. Allowing for avoiding overwriting user data due to an outdated second tab, or allowing different apps and views to exist.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API#Responding_to_storage_changes_with_the_StorageEvent

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

No branches or pull requests

1 participant