summaryrefslogtreecommitdiffstats
path: root/devtools/client/aboutdebugging/test/service-workers/delay-sw.html
blob: 545830ebad58da373daa8135861f11468eaabecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="UTF-8">
  <title>Service worker test</title>
</head>
<body>
<script type="text/javascript">
"use strict";

var sw = navigator.serviceWorker.register("delay-sw.js");
sw.then(
  function () {
    dump("SW registered\n");
  },
  function (e) {
    dump("SW not registered: " + e + "\n");
  }
);
</script>
</body>
</html>