Sign in
webkit
/
WebKit
/
5c82867682d06b2f0e836c80806c29d8326bda6d
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
service-workers
/
service-worker
/
resources
/
clients-get-client-types-shared-worker.js
blob: fadef970374bdb872062b28bcb5d1fd249ed2066 [
file
] [
log
] [
blame
]
onconnect
=
function
(
e
)
{
var
port
=
e
.
ports
[
0
];
fetch
(
'clientId'
)
.
then
(
function
(
response
)
{
return
response
.
text
();
})
.
then
(
function
(
text
)
{
port
.
postMessage
({
clientId
:
text
});
});
};