version will take control next time • self.skipWaiting() • self.clients.claim() Note Unregistering navigator.serviceWorker.getRegistration().then(function(reg) { reg.unregister(); });
manifest provides information about an application (such as name, author, icon, and description) in a text file. The purpose of the manifest is to install web applications to the homescreen of a device, providing users with quicker access and a richer experience.” { "name": "Manifest Demo", "display": "standalone", "background_color": "#ccc", "start_url": ".", "icons": [{ "src": "icon.png", "sizes": "144x144", "type": "image/png" }] } • use with SW Note