blob: ea065a6bf1195555dd080cd1abf2a63eb5fbde8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
importScripts('./dispatcher.js');
const params = new URLSearchParams(location.search);
const uuid = params.get('uuid');
let executeOrders = async function() {
while(true) {
let task = await receive(uuid);
eval(`(async () => {${task}})()`);
}
};
executeOrders();
|