diff options
Diffstat (limited to 'dom/serviceworkers/test/message_receiver.html')
-rw-r--r-- | dom/serviceworkers/test/message_receiver.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/serviceworkers/test/message_receiver.html b/dom/serviceworkers/test/message_receiver.html new file mode 100644 index 0000000000..82cb587c72 --- /dev/null +++ b/dom/serviceworkers/test/message_receiver.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<script> + navigator.serviceWorker.onmessage = function(e) { + window.parent.postMessage(e.data, "*"); + }; +</script> |