зеркало из https://github.com/mozilla/gecko-dev.git
13 строки
363 B
HTML
13 строки
363 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
navigator.serviceWorker.getRegistration(".").then(function(registration) {
|
|
registration.unregister().then(function(success) {
|
|
if (success) {
|
|
window.parent.postMessage({status: "unregistrationdone"}, "*");
|
|
}
|
|
}, function(e) {
|
|
dump("Unregistering the SW failed with " + e + "\n");
|
|
});
|
|
});
|
|
</script>
|