Skip to content

Commit 98c8abd

Browse files
committed
fix service worker issue
1 parent b269ace commit 98c8abd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/layouts/layout.astro

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ const { title } = Astro.props;
1818
</body>
1919
</html>
2020

21+
<script>
22+
// Temporary because of Gatsby move. Leave in until... say February 2022?
23+
navigator.serviceWorker.getRegistrations().then(function (registrations) {
24+
for (let registration of registrations) {
25+
registration.unregister();
26+
}
27+
});
28+
</script>
29+
2130
<style lang="scss">
2231
.root {
2332
display: grid;

0 commit comments

Comments
 (0)