We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b4f87 commit 18a31a4Copy full SHA for 18a31a4
src/layouts/Layout.astro
@@ -110,16 +110,6 @@ footer {
110
</style>
111
112
<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
-
123
document.addEventListener('DOMContentLoaded', () => {
124
if (window.matchMedia('(display-mode: standalone)').matches) {
125
0 commit comments