summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/message_receiver.html
blob: 82cb587c7275198345e0f41d894d7dc21a156a0d (plain)
1
2
3
4
5
6
<!DOCTYPE html>
<script>
  navigator.serviceWorker.onmessage = function(e) {
    window.parent.postMessage(e.data, "*");
  };
</script>