summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/serviceworkers/notification/unregister.html
blob: d5a141f83031d5442501af55b6ec3ac04e54bcf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<script>
  navigator.serviceWorker.getRegistration(".").then(function(registration) {
    registration.unregister().then(function(success) {
      if (success) {
        window.parent.callback();
      }
    }, function(e) {
      dump("Unregistering the SW failed with " + e + "\n");
    });
  });
</script>