summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/simpleregister/ready.html
blob: 6bc163e5f4c55d7e8284c11b257e8fd9d56cdbfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
  <head></head>
  <body>
    <script type="text/javascript">

      window.addEventListener('message', function(evt) {
        navigator.serviceWorker.ready.then(function() {
          evt.ports[0].postMessage("WOW!");
        });
      });

    </script>
  </body>
</html>