Sign in
chromium
/
chromium
/
src
/
b6b2ff25cd6773cca63208bd50cba3a20b31cfba
/
.
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
serviceworker
/
chromium
/
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
});
});
};