mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
7 lines
150 B
JavaScript
7 lines
150 B
JavaScript
self.addEventListener("connect", function(e) {
|
|
var port = e.ports[0];
|
|
port.onmessage = function(e) {
|
|
port.postMessage(eval(e.data));
|
|
};
|
|
});
|