add sw script

This commit is contained in:
Henrik Bygren 2022-04-24 19:09:28 +02:00
parent 74286fa8bc
commit bd4ff27351

View File

@ -40,3 +40,11 @@
</main>
</body>
<script>
if('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js?v=1.5');
});
}
</script>
</html>