gecko-dev/dom/serviceworkers/test/message_receiver.html

7 строки
136 B
HTML

<!DOCTYPE html>
<script>
navigator.serviceWorker.onmessage = function(e) {
window.parent.postMessage(e.data, "*");
};
</script>