blob: 4324e6d4054f9a133e683b8851e8b79b7d6b3e1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE html>
<script>
fetch('clientId')
.then(function(response) {
return response.text();
})
.then(function(text) {
parent.postMessage({clientId: text}, '*');
});
onmessage = function(e) {
if (e.data == 'StartWorker') {
var w = new Worker('clients-get-client-types-frame-worker.js');
w.postMessage({cmd:'GetClientId', port:e.ports[0]}, [e.ports[0]]);
}
}
</script>
|