Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

undo pwa

if(window.navigator && navigator.serviceWorker) {
  navigator.serviceWorker.getRegistrations()
  .then(function(registrations) {
    for(let registration of registrations) {
      registration.unregister();
    }
  });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #undo #pwa
ADD COMMENT
Topic
Name
8+2 =