gecko/dom/broadcastchannel/tests/broadcastchannel_worker_any.js

6 lines
128 B
JavaScript

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