Sign in
chromium
/
chromium
/
src
/
2d88b05db6842a4cc1391dc30ed604588c147041
/
.
/
third_party
/
WebKit
/
LayoutTests
/
external
/
wpt
/
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
});
});
}
};