a
This commit is contained in:
parent
fb2508f6d8
commit
6cce99d3f9
|
|
@ -594,5 +594,21 @@
|
|||
} );
|
||||
</script>
|
||||
|
||||
<!-- DEBUT PWA -->
|
||||
<script>
|
||||
if ("serviceWorker" in navigator) {
|
||||
window.addEventListener("load", function () {
|
||||
navigator.serviceWorker.register("/sw.js")
|
||||
.then(function (reg) {
|
||||
// OK
|
||||
})
|
||||
.catch(function (err) {
|
||||
// Erreur d’enregistrement
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<!-- FIN PWA -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user