a
This commit is contained in:
parent
f43310cfd0
commit
4ae73bb252
|
|
@ -101,7 +101,6 @@
|
|||
<!-- END: webview fixes -->
|
||||
|
||||
<!-- APLLI MOBILE -->
|
||||
<!-- <link rel="manifest" href="/manifest.json"> -->
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<meta name="theme-color" content="#1f2a44">
|
||||
|
||||
|
|
@ -110,6 +109,7 @@
|
|||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<meta name="apple-mobile-web-app-title" content="RadiantAssure">
|
||||
<link rel="apple-touch-icon" href="/assets/icons/icon-192.png">
|
||||
<!-- FIN APLLI MOBILE -->
|
||||
</head>
|
||||
|
||||
<body >
|
||||
|
|
|
|||
|
|
@ -397,6 +397,17 @@
|
|||
|
||||
</style>
|
||||
|
||||
<!-- APLLI MOBILE -->
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<meta name="theme-color" content="#1f2a44">
|
||||
|
||||
<!-- iOS (installation sur écran d’accueil) -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<meta name="apple-mobile-web-app-title" content="RadiantAssure">
|
||||
<link rel="apple-touch-icon" href="/assets/icons/icon-192.png">
|
||||
<!-- FIN APLLI MOBILE -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
@ -550,5 +561,22 @@
|
|||
}
|
||||
|
||||
</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