Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 853 Bytes
<!-- pwa fire bundle config file
Copy and paste this code to your index file, eg just before the end of the body tag
or in the head tag in html5.
-->
<!-- register service worker -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js')
.then(function() { console.log("[ PWA Fire Bundle 🐹 ] Service Worker Registered"); });
}
);
}
</script>
<!-- end of service worker -->
<!-- using the web manifest.json
Add a link tag to all the pages that encompass your web app, as follows;
-->
<!-- start of web manifest -->
<link rel="manifest" href="app.webmanifest">
<!-- theme-color
Also remember to add the theme color to all your pages as shown in the code below;
-->
<meta name="theme-color" content="#fff" />
<!-- end-theme-color -->
You can’t perform that action at this time.