Sign in
cobalt
/
cobalt
/
refs/heads/master
/
.
/
third_party
/
web_platform_tests
/
service-workers
/
service-worker
/
resources
/
clients-get-client-types-frame-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
});
});
}
};