blob: 1ccc2fe3bdbe68ad200f7037fd5c68d768931834 (
plain)
1
2
3
4
5
6
7
8
|
onconnect = function(e) {
var port = e.ports[0];
var xhr = new XMLHttpRequest();
xhr.onload = function() { port.postMessage(this.responseText); };
xhr.onerror = function(e) { port.postMessage(e); };
xhr.open('GET', 'dummy.txt?simple', true);
xhr.send();
};
|