onconnect = function(e) {
var port = e.ports[0];
fetch('clientId')
.then(function(response) {
return response.text();
})
.then(function(text) {
port.postMessage({clientId: text});
});
};
onconnect = function(e) {
var port = e.ports[0];
fetch('clientId')
.then(function(response) {
return response.text();
})
.then(function(text) {
port.postMessage({clientId: text});
});
};