summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/serviceworkers/notification/register.html
blob: b7df73bede60d9faef8b430d148b4f6fefe1d8ae (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<script>
  function done() {
    parent.callback();
  }

  navigator.serviceWorker.ready.then(done);
  navigator.serviceWorker.register("../notification_get_sw.js", {scope: "."}).catch(function(e) {
    dump("Registration failure " + e.message + "\n");
  });
</script>