blob: 92c5d15def0f6d555946bffeef82a500122809b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!doctype html>
<script>
var worker = new Worker('./claim-worker-fetch-worker.js');
function fetch_in_worker(url) {
return new Promise((resolve) => {
worker.onmessage = (event) => {
resolve(event.data);
};
worker.postMessage(url);
});
}
</script>
|