Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Service workers installs w/o this script
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Aug 25, 2022
1 parent 793613c commit f0dba73
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/profcomff-root-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,3 @@ const layoutEngine = constructLayoutEngine({ routes, applications });
applications.forEach(registerApplication);
layoutEngine.activate();
start();

if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register("/service-worker.js")
.then((registration) => {
console.info("SW registered: ", registration);
})
.catch((registrationError) => {
console.info("SW registration failed: ", registrationError);
});
});
}

0 comments on commit f0dba73

Please sign in to comment.