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: error in non-pwa apps [LIBS-315] #789

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

KaiVandivier
Copy link
Contributor

New logic in the offline interface was causing this error: [Offine interface] Cannot send service worker message - no service worker is controlling this page.

This PR disables those actions in non-PWA apps and handles them in PWA apps in which the SW hasn't installed yet

Copy link
Contributor

@HendrikThePendric HendrikThePendric left a comment

Choose a reason for hiding this comment

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

Left one comment

pwa/src/offline-interface/offline-interface.js Outdated Show resolved Hide resolved
@KaiVandivier KaiVandivier enabled auto-merge (squash) March 6, 2023 15:29
@KaiVandivier KaiVandivier merged commit 590530e into master Mar 6, 2023
@KaiVandivier KaiVandivier deleted the fix-error-in-non-pwa-apps-libs-315 branch March 6, 2023 15:50
dhis2-bot added a commit that referenced this pull request Mar 6, 2023
## [10.3.1](v10.3.0...v10.3.1) (2023-03-06)

### Bug Fixes

* error in non-pwa apps [LIBS-315] ([#789](#789)) ([590530e](590530e))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants