Skip to content

Commit

Permalink
perf: minify service worker remover script
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Jan 24, 2024
1 parent c1d1b92 commit f7e99e8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,7 @@
<a href="/privacy-policy">プライバシーポリシー</a> &copy; 2012- MacRat All Rights Reserved.
</footer>

<script>
navigator.serviceWorker.getRegistrations().then((rs) => {
for(let r of rs) {
r.unregister();
}
});
</script>
<script type="text/javascript">navigator.serviceWorker.getRegistrations().then(e=>{for(let r of e)r.unregister()})</script>
</body>
</html>
{{end}}

0 comments on commit f7e99e8

Please sign in to comment.