Skip to content

Conversation

rupato-deriv
Copy link
Contributor

This pull request updates the service worker registration logic in index.html to prevent service worker registration in Firefox browsers and to clean up any previously registered service workers for Firefox users. Additionally, it ensures service worker messages are only listened for in non-Firefox browsers.

Browser-specific service worker management:

  • Updated the script to detect Firefox via the user agent and prevent service worker registration in Firefox, including unregistering any existing service workers for Firefox users.
  • Moved the service worker message listener so that it only runs for non-Firefox browsers, preventing unnecessary event listeners in Firefox.

Copy link
Contributor

Preview Link: https://Rupato-Fix-service-w.bot-65f.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

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.

1 participant