add sw script
This commit is contained in:
parent
74286fa8bc
commit
bd4ff27351
@ -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>
|
Loading…
Reference in New Issue
Block a user