gecko/dom/broadcastchannel/tests/broadcastchannel_worker_any.js

6 lines
128 B
JavaScript
Raw Normal View History

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