summaryrefslogtreecommitdiffstats
path: root/devtools/client/aboutdebugging/test/service-workers/empty-sw.html
blob: a94c2b9ffdcb43117cb33ccc7e33bfd63fef04f9 (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("empty-sw.js");
sw.then(
  function () {
    dump("SW registered\n");
  },
  function (e) {
    dump("SW not registered: " + e + "\n");
  }
);
</script>
</body>
</html>