Skip to content

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
@psrpinto psrpinto force-pushed the disable-service-worker branch from e672c25 to f6057d0 Compare January 18, 2024 14:19
@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
@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.

3 participants