blob: 2b6743238446ce8661948b752db10f0d52c040cc (
plain)
1
2
3
4
5
6
7
8
9
|
// If nested workers aren't supported, punt:
if (typeof Worker != "undefined") {
var w = new Worker("dedicated-worker-script.js");
w.onmessage = function (e) {
postMessage(e.data);
}
} else {
postMessage("Nested workers not supported.");
}
|