mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
9 lines
183 B
JavaScript
9 lines
183 B
JavaScript
onconnect = function(evt) {
|
|
var mc = new MessageChannel();
|
|
|
|
evt.ports[0].postMessage(42, [mc.port2]);
|
|
mc.port1.onmessage = function(e) {
|
|
mc.port1.postMessage(e.data);
|
|
}
|
|
}
|