Sign in
webkit
/
WebKit
/
5c82867682d06b2f0e836c80806c29d8326bda6d
/
.
/
LayoutTests
/
imported
/
w3c
/
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
});
});
}
};