Skip to content

Centralize Service Worker Registration - #304

Open
suman20041 wants to merge 1 commit into
vinaysingh282006:mainfrom
suman20041:main
Open

Centralize Service Worker Registration#304
suman20041 wants to merge 1 commit into
vinaysingh282006:mainfrom
suman20041:main

Conversation

@suman20041

Copy link
Copy Markdown

#243 issue resolved

Description

This PR addresses Issue #1 by removing duplicated service worker registration code across multiple HTML files and centralizing it into a single JavaScript file. This improves maintainability, reduces code duplication, and prevents potential registration conflicts.

Changes Made

  • Created js/service-worker-register.js to handle all service worker registration logic in one place
  • Removed duplicate service worker registration code from all HTML files
  • Added single script reference to the centralized registration file in each HTML page
  • Enhanced service worker registration with better error handling and update notifications

@suman20041

Copy link
Copy Markdown
Author

@vinaysingh282006 please check once... Let me known any changes is required..

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