Skip to content

Commit

Permalink
use optimized code for fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthDhirde committed Mar 29, 2024
1 parent eb81798 commit e7d15c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register('https://siddharthdhirde.github.io/busNoticeBoard/sw_cached_pages.js')
.register('https://siddharthdhirde.github.io/busNoticeBoard/sw_cached_site.js')
.then((reg) => console.log("ServiceWorker registered successfully"))
.catch((err) => console.log(`ServiceWorker registration failed: ${err}`));
});
Expand Down

0 comments on commit e7d15c8

Please sign in to comment.