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

7 строки
136 B
HTML

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