blob: 0d86e75eaa1213e5aa13555eae231cea2ec4f287 (
plain)
1
2
3
4
5
6
7
8
9
10
|
onmessage = function (e) {
var xhr = new XMLHttpRequest();
xhr.open("GET", e.data, true);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
postMessage(xhr.status);
}
};
xhr.send();
};
|