blob: 0a1461b40e089f684faa00cac56d4491232a1432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
onmessage = function(e) {
if (e.data.cmd == 'GetClientId') {
fetch('clientId')
.then(function(response) {
return response.text();
})
.then(function(text) {
e.data.port.postMessage({clientId: text});
});
}
};
|