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

Fix anomalous boot loop when app is in jQuery mode and no SW is registered #1170

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

Jaifroid
Copy link
Member

If the app is capable of ServiceWorker mode, but the user has switched to jQuery mode AND the Service Worker is unregistered (e.g. because the user has cleared data for the site), then the new code that initiates the Service Worker messaging causes a boot loop.

This PR fixes that by detecting the situation and showing a dialogue box warning the user that the app won't work offline in the current configuration, suggesting the user switch to ServiceWorker mode.

@Jaifroid Jaifroid added the bug label Nov 22, 2023
@Jaifroid Jaifroid added this to the v4.0 milestone Nov 22, 2023
@Jaifroid Jaifroid self-assigned this Nov 22, 2023
@Jaifroid Jaifroid merged commit 2e51b08 into main Nov 22, 2023
9 checks passed
@Jaifroid Jaifroid deleted the Fix-anomalous-boot-loop branch November 22, 2023 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant