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

Make it possible to disable service worker at runtime #243

Merged
merged 4 commits into from Jan 19, 2024

Conversation

psrpinto
Copy link
Member

@psrpinto psrpinto commented Jan 18, 2024

By setting enableServiceWorker: false in block attributes.

@psrpinto psrpinto marked this pull request as ready for review January 18, 2024 14:13
@psrpinto psrpinto requested a review from ashfame January 18, 2024 14:13
@psrpinto psrpinto changed the title Make it possible to disable service worker in runtime Make it possible to disable service worker at runtime Jan 18, 2024
@ashfame
Copy link
Member

ashfame commented Jan 19, 2024

@psrpinto Am I right in assuming Chatrix would gracefully fallback without the service worker and still work, just the multiple instances on a page bit won't be handled?

@psrpinto
Copy link
Member Author

Correct, it works fine without the service worker, as long as there is only one instance of hydrogen running for a given session. The only thing the service worker does is to close the session on the "active" instance whenever the same session is opened in another instance.

Copy link
Member

@ashfame ashfame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@psrpinto psrpinto merged commit 99fb67b into main Jan 19, 2024
2 checks passed
@psrpinto psrpinto deleted the disable-service-worker branch January 19, 2024 11:36
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

2 participants