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

Check to make sure service workers is enabled #7739

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

jrjohnson
Copy link
Member

All of our supported browsers support workers, however in comes cases (like FF private) the worker isn't enabled. This check ensures that the worker exists and is enabled before we try and check it.

Fixes ilios/ilios#4761

All of our supported browsers support workers, however in comes cases
(like FF private) the worker isn't enabled. This check ensures that the
worker exists and is enabled before we try and check it.
@jrjohnson jrjohnson marked this pull request as ready for review March 25, 2024 21:49
@jrjohnson jrjohnson requested a review from stopfstedt as a code owner March 25, 2024 21:49
if (
isTesting() ||
config.disableServiceWorker ||
!('serviceWorker' in navigator) ||
Copy link
Member

Choose a reason for hiding this comment

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

in - not so scary now, eh?! 😆

@stopfstedt stopfstedt merged commit ddecd55 into ilios:master Mar 26, 2024
26 checks passed
@jrjohnson jrjohnson deleted the i4761-worker branch March 26, 2024 17:25
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.

Does not load in firefox private browsing
2 participants