unregister.html (363B)
1 <!DOCTYPE html> 2 <script> 3 navigator.serviceWorker.getRegistration(".").then(function(registration) { 4 registration.unregister().then(function(success) { 5 if (success) { 6 window.parent.postMessage({status: "unregistrationdone"}, "*"); 7 } 8 }, function(e) { 9 dump("Unregistering the SW failed with " + e + "\n"); 10 }); 11 }); 12 </script>