Skip to content

Commit 18a31a4

Browse files
authored
Remove service worker registration (#1472)
This also needs a `Clear-Site-Data` which @artcz is working on
1 parent 59b4f87 commit 18a31a4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/layouts/Layout.astro

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,6 @@ footer {
110110
</style>
111111

112112
<script>
113-
if ("serviceWorker" in navigator) {
114-
window.addEventListener("load", () => {
115-
navigator.serviceWorker.register("/service-worker.js").then((registration) => {
116-
console.log("ServiceWorker registered: ", registration);
117-
}).catch((registrationError) => {
118-
console.log("ServiceWorker registration failed: ", registrationError);
119-
});
120-
});
121-
}
122-
123113
document.addEventListener('DOMContentLoaded', () => {
124114
if (window.matchMedia('(display-mode: standalone)').matches) {
125115

0 commit comments

Comments
 (0)