gecko-dev/dom/broadcastchannel/tests/broadcastchannel_worker_any.js

6 строки
128 B
JavaScript

(new BroadcastChannel('foobar')).onmessage = function(event) {
event.target.postMessage(event.data);
}
postMessage("READY");