Sign in
cobalt
/
cobalt
/
56d7c4e1a836a7ef6e2823bffb8d1567758b82eb
/
.
/
third_party
/
web_platform_tests
/
service-workers
/
service-worker
/
resources
/
clients-get-client-types-worker.js
blob: 0a1461b40e089f684faa00cac56d4491232a1432 [
file
] [
log
] [
blame
]
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
});
});
}
};