tenfourfox/dom/workers/test/worker_referrer.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

10 lines
232 B
JavaScript

onmessage = function() {
importScripts(['referrer.sjs?import']);
var xhr = new XMLHttpRequest();
xhr.open('GET', 'referrer.sjs?result', true);
xhr.onload = function() {
postMessage(xhr.responseText);
}
xhr.send();
}