mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-02 15:49:05 +00:00
13 lines
475 B
JavaScript
13 lines
475 B
JavaScript
function ok(a, msg) {
|
|
dump("OK: " + !!a + " => " + a + " " + msg + "\n");
|
|
postMessage({type: 'status', status: !!a, msg: a + ": " + msg });
|
|
}
|
|
|
|
onmessage = function() {
|
|
ok(typeof Headers === "function", "Headers should be defined");
|
|
ok(typeof Request === "function", "Request should be defined");
|
|
ok(typeof Response === "function", "Response should be defined");
|
|
ok(typeof fetch === "function", "fetch() should be defined");
|
|
postMessage({ type: 'finish' });
|
|
}
|