blob: f5ff7c234b42c60220f7f94c060de634c154e405 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
try {
var worker = new Worker('./claim-worker-fetch-worker.js');
self.onmessage = (event) => {
worker.postMessage(event.data);
}
worker.onmessage = (event) => {
self.postMessage(event.data);
};
} catch (e) {
self.postMessage("Fail: " + e.data);
}
|